pub struct Password {
pub state: PasswordState,
pub last_change: Option<String>,
pub expires: Option<String>,
}Expand description
The state of an account’s password, from etc/shadow.
Fields§
§state: PasswordStateWhat the password field holds, never the hash itself.
last_change: Option<String>The day it last changed (2026-10-04, UTC); None when not set.
Set when the account is created, so for an account never changed
since, its creation day.
expires: Option<String>The day the account expires, if it does.
Trait Implementations§
impl Eq for Password
impl StructuralPartialEq for Password
Auto Trait Implementations§
impl Freeze for Password
impl RefUnwindSafe for Password
impl Send for Password
impl Sync for Password
impl Unpin for Password
impl UnsafeUnpin for Password
impl UnwindSafe for Password
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