Restricted access to several fields of SignedInUser

This commit is contained in:
Emi Tatsuo 2020-11-19 15:21:26 -05:00
parent 4996ae99d2
commit ff5f294dae
Signed by: Emi
GPG key ID: 68FAB2E2E6DFC98B

View file

@ -198,10 +198,10 @@ impl NotSignedInUser {
///
/// For more information about the user lifecycle and sign-in stages, see [`User`]
pub struct SignedInUser<UserData: Serialize + DeserializeOwned> {
pub (crate) username: String,
pub (crate) active_certificate: Certificate,
pub (crate) manager: UserManager,
pub (crate) inner: PartialUser<UserData>,
username: String,
active_certificate: Certificate,
manager: UserManager,
inner: PartialUser<UserData>,
/// Indicates that [`SignedInUser::as_mut()`] has been called, but [`SignedInUser::save()`] has not
has_changed: bool,
}