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
name: String
username
password: String
user password
uid: uid_t
user ID
gid: gid_t
group ID
gecos: String
user information
home_dir: String
home directory
shell: String
shell program
Methods
impl Passwd
[src]
fn from_name(user: &str) -> Option<Passwd>
Gets a Passwd
entry for the given username, or returns None
fn from_uid(uid: uid_t) -> Option<Passwd>
Gets a Passwd
entry for the given uid, or returns None