Struct pgs_files::shadow::ShadowEntry
[−]
[src]
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, }
An entry from /etc/shadow
Fields
name: String
Login name
passwd: String
Encrypted password
last_change: c_long
Date of last change (measured in days since 1970-01-01 00:00:00 +0000 (UTC))
min: c_long
Min number of days between changes
max: c_long
Max number of days between changes
warning: c_long
Number of days before password expires to warn user to change it
inactivity: c_long
Number of days after password expires until account is disabled
expires: c_long
Date when account expires (measured in days since 1970-01-01 00:00:00 +0000 (UTC))
flag: c_ulong
Reserved
Trait Implementations
impl Debug for ShadowEntry
[src]
impl PartialEq for ShadowEntry
[src]
fn eq(&self, __arg_0: &ShadowEntry) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ShadowEntry) -> bool
This method tests for !=
.
impl PartialOrd for ShadowEntry
[src]
fn partial_cmp(&self, __arg_0: &ShadowEntry) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &ShadowEntry) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &ShadowEntry) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &ShadowEntry) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &ShadowEntry) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more