#[non_exhaustive]pub struct Identity {
pub key: Value,
pub name: String,
pub roles: Vec<Role>,
pub must_change_password: bool,
}Expand description
Who is using the application.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: ValueThe key of their record, for ?CurrentUserId.
name: StringTheir name, for ?CurrentUserName and the audit trail.
roles: Vec<Role>Their roles.
must_change_password: boolThey have to choose a new password before anything else.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more