pub struct Account {
pub uid: Option<u32>,
pub gid: Option<u32>,
pub gecos: String,
pub home: String,
pub shell: String,
pub empty_password: bool,
}Expand description
An account of etc/passwd.
Fields§
§uid: Option<u32>Its id; 0 is root’s power, whatever the name.
gid: Option<u32>Its primary group’s id.
gecos: StringThe comment field (often the person’s name).
home: StringIts home.
shell: StringWhat runs when it logs in.
empty_password: boolThe password field is empty, not x: no password at all, without
looking at etc/shadow.
Implementations§
Trait Implementations§
impl Eq for Account
impl StructuralPartialEq for Account
Auto Trait Implementations§
impl Freeze for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnsafeUnpin for Account
impl UnwindSafe for Account
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