pub(crate) struct ShadowEntry {
pub(crate) namp: String,
pub(crate) pwdp: String,
pub(crate) lstchg: Option<u32>,
pub(crate) min: Option<u32>,
pub(crate) max: Option<u32>,
pub(crate) warn: Option<u32>,
pub(crate) inact: Option<u32>,
pub(crate) expire: Option<u32>,
pub(crate) flag: String,
}Expand description
Entry from shadow file.
Fields§
§namp: Stringuser login name
pwdp: Stringencrypted password
lstchg: Option<u32>days (from Jan 1, 1970) since password was last changed
min: Option<u32>days before which password may not be changed
max: Option<u32>days after which password must be changed
warn: Option<u32>days before password is to expire that user is warned of pending password expiration
inact: Option<u32>days after password expires that account is considered inactive and disabled
expire: Option<u32>date (in days since Jan 1, 1970) when account will be disabled
flag: Stringreserved for future use
Implementations§
Trait Implementations§
Source§impl Clone for ShadowEntry
impl Clone for ShadowEntry
Source§fn clone(&self) -> ShadowEntry
fn clone(&self) -> ShadowEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShadowEntry
impl Debug for ShadowEntry
Source§impl PartialEq for ShadowEntry
impl PartialEq for ShadowEntry
impl Eq 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