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



user password

user ID

group ID

user information

home directory

shell program


impl Passwd

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

Formats the value using the given formatter.