pub struct PasswdEntry {
pub username: String,
pub passwd: String,
pub uid: u32,
pub gid: u32,
pub gecos: String,
pub home_dir: String,
pub shell: String,
}Expand description
A passwd entry, representing one row in
/etc/passwd
Fields§
§username: StringUsername
passwd: StringUser password
uid: u32User ID
gid: u32Group ID
gecos: StringUser full name or comment
home_dir: StringHome directory
shell: StringShell
Implementations§
Source§impl PasswdEntry
impl PasswdEntry
Sourcepub fn parse(s: &str) -> Option<PasswdEntry>
pub fn parse(s: &str) -> Option<PasswdEntry>
Create a PasswdEntry from &str.
Trait Implementations§
Source§impl Clone for PasswdEntry
impl Clone for PasswdEntry
Source§fn clone(&self) -> PasswdEntry
fn clone(&self) -> PasswdEntry
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 PasswdEntry
impl Debug for PasswdEntry
Source§impl PartialEq for PasswdEntry
impl PartialEq for PasswdEntry
impl Eq for PasswdEntry
impl StructuralPartialEq for PasswdEntry
Auto Trait Implementations§
impl Freeze for PasswdEntry
impl RefUnwindSafe for PasswdEntry
impl Send for PasswdEntry
impl Sync for PasswdEntry
impl Unpin for PasswdEntry
impl UnwindSafe for PasswdEntry
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