pub struct ShadowEntry {
pub name: String,
pub passwd: String,
pub last_change: c_long,
pub min: c_long,
pub max: c_long,
pub warning: c_long,
pub inactivity: c_long,
pub expires: c_long,
pub flag: c_ulong,
}Expand description
An entry from /etc/shadow
Fields§
§name: StringLogin name
passwd: StringEncrypted password
last_change: c_longDate of last change (measured in days since 1970-01-01 00:00:00 +0000 (UTC))
min: c_longMin number of days between changes
max: c_longMax number of days between changes
warning: c_longNumber of days before password expires to warn user to change it
inactivity: c_longNumber of days after password expires until account is disabled
expires: c_longDate when account expires (measured in days since 1970-01-01 00:00:00 +0000 (UTC))
flag: c_ulongReserved
Trait Implementations§
Source§impl Debug for ShadowEntry
impl Debug for ShadowEntry
Source§impl Entry for ShadowEntry
impl Entry for ShadowEntry
fn from_line(line: &str) -> Result<ShadowEntry, ParseIntError>
Source§impl PartialEq for ShadowEntry
impl PartialEq for ShadowEntry
Source§impl PartialOrd for ShadowEntry
impl PartialOrd for ShadowEntry
impl StructuralPartialEq for ShadowEntry
Auto Trait Implementations§
impl Freeze for ShadowEntry
impl RefUnwindSafe for ShadowEntry
impl Send for ShadowEntry
impl Sync for ShadowEntry
impl Unpin for ShadowEntry
impl UnwindSafe for ShadowEntry
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