pub struct Passwd<S = String> {
pub name: S,
pub passwd: S,
pub uid: uid_t,
pub gid: uid_t,
pub gecos: S,
pub dir: S,
pub shell: S,
/* private fields */
}
Expand description
Information about a user in the password database
Equivalent to struct passwd
: for full information on the
individual fields, see the manual pages for
getpwuid_r(3)
and
passwd(5)
on your favorite Unix-style operating system.
Strings are represented as S
, usually String
.
This struct is non-exhaustive:
future versions of pwd-grp
may add fields.
(For technical reasons this is done with a hidden field
called __non_exhaustive
.
If you use this to bypass the restriction,
future minor updates to this crate may break your code.)
Fields§
§name: S
§passwd: S
§uid: uid_t
§gid: uid_t
§gecos: S
§dir: S
§shell: S
Implementations§
Trait Implementations§
Source§impl<S: Ord> Ord for Passwd<S>
impl<S: Ord> Ord for Passwd<S>
Source§impl<S: PartialOrd> PartialOrd for Passwd<S>
impl<S: PartialOrd> PartialOrd for Passwd<S>
impl<S: Eq> Eq for Passwd<S>
impl<S> StructuralPartialEq for Passwd<S>
Auto Trait Implementations§
impl<S> Freeze for Passwd<S>where
S: Freeze,
impl<S> RefUnwindSafe for Passwd<S>where
S: RefUnwindSafe,
impl<S> Send for Passwd<S>where
S: Send,
impl<S> Sync for Passwd<S>where
S: Sync,
impl<S> Unpin for Passwd<S>where
S: Unpin,
impl<S> UnwindSafe for Passwd<S>where
S: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.