Struct passwd::Passwd [] [src]

pub struct Passwd {
    pub name: String,
    pub password: String,
    pub uid: uid_t,
    pub gid: gid_t,
    pub gecos: String,
    pub home_dir: String,
    pub shell: String,
}

Represents an entry in /etc/passwd

Fields

username

user password

user ID

group ID

user information

home directory

shell program

Methods

impl Passwd
[src]

Gets a Passwd entry for the given username, or returns None

Gets a Passwd entry for the given uid, or returns None

Trait Implementations

impl Debug for Passwd
[src]

Formats the value using the given formatter.