#[non_exhaustive]pub struct LoginUser {
pub name: String,
pub class: Option<String>,
pub uid: Option<String>,
pub full_name: Option<String>,
pub authentication_methods: Vec<String>,
pub authentication_secrets: Vec<AuthenticationSecret>,
}Expand description
A login user. Passwords and keys are read only with the secrets feature; authentication_methods says which
are present.
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.name: String§class: Option<String>§uid: Option<String>§full_name: Option<String>§authentication_methods: Vec<String>One entry per authentication statement, e.g. "encrypted-password", "ssh-rsa".
authentication_secrets: Vec<AuthenticationSecret>The passwords and keys; empty unless the secrets feature is enabled.
Trait Implementations§
impl Eq for LoginUser
impl StructuralPartialEq for LoginUser
Auto Trait Implementations§
impl Forget for LoginUser
impl Freeze for LoginUserwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<AuthenticationSecret>: Freeze,
impl Move for LoginUser
impl RefUnwindSafe for LoginUser
impl Send for LoginUserwhere
RawVecInner: Send,
impl Sync for LoginUserwhere
RawVecInner: Sync,
impl Unpin for LoginUser
impl UnsafeUnpin for LoginUserwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<AuthenticationSecret>: UnsafeUnpin,
impl UnwindSafe for LoginUserwhere
RawVecInner: UnwindSafe,
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