#[non_exhaustive]pub struct RootAuthentication {
pub methods: Vec<String>,
pub secrets: Vec<AuthenticationSecret>,
}Expand description
The system root-authentication methods. Passwords and keys are read only with the secrets feature.
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.methods: Vec<String>One entry per statement, e.g. "encrypted-password", "ssh-rsa", "no-public-keys".
secrets: Vec<AuthenticationSecret>The passwords and keys; empty unless the secrets feature is enabled.
Trait Implementations§
Source§impl Clone for RootAuthentication
impl Clone for RootAuthentication
Source§impl Debug for RootAuthentication
impl Debug for RootAuthentication
impl Eq for RootAuthentication
Source§impl PartialEq for RootAuthentication
impl PartialEq for RootAuthentication
impl StructuralPartialEq for RootAuthentication
Auto Trait Implementations§
impl Forget for RootAuthentication
impl Freeze for RootAuthenticationwhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<AuthenticationSecret>: Freeze,
impl Move for RootAuthentication
impl RefUnwindSafe for RootAuthentication
impl Send for RootAuthenticationwhere
RawVecInner: Send,
impl Sync for RootAuthenticationwhere
RawVecInner: Sync,
impl Unpin for RootAuthentication
impl UnsafeUnpin for RootAuthenticationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<AuthenticationSecret>: UnsafeUnpin,
impl UnwindSafe for RootAuthenticationwhere
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