pub struct UserInfo {
pub exists: bool,
pub uid: Option<u32>,
pub gid: Option<u32>,
pub groups: Option<Vec<String>>,
pub home: Option<String>,
pub shell: Option<String>,
}Expand description
User information
Fields§
§exists: boolWhether the user exists
uid: Option<u32>User ID
gid: Option<u32>Group ID
groups: Option<Vec<String>>Groups the user belongs to
home: Option<String>Home directory
shell: Option<String>Shell
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UserInfo
impl RefUnwindSafe for UserInfo
impl Send for UserInfo
impl Sync for UserInfo
impl Unpin for UserInfo
impl UnsafeUnpin for UserInfo
impl UnwindSafe for UserInfo
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