#[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>,
}Expand description
A login user. Passwords and keys are not extracted, only which authentication methods 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".
Trait Implementations§
impl Eq for LoginUser
impl StructuralPartialEq for LoginUser
Auto Trait Implementations§
impl Forget for LoginUser
impl Freeze for LoginUser
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,
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