Make username and user_id fields public
Since UserNameId as a part of the public API these fields need to be
accessed.
@@ -52,8 +52,8 @@ impl Credentials {
/// Represents a user's username
#[derive(Deserialize, Serialize)]
pub struct UsernameId {
- username: String,
- user_id: String,
+ pub username: String,
+ pub user_id: String,
}
/// Builder for Credential. It hashes the password upon build.
