pub struct Group<S = String> {
pub name: S,
pub passwd: S,
pub gid: uid_t,
pub mem: Box<[S]>,
/* private fields */
}
Expand description
Information about a group in the password database
Equivalent to struct group
: for full information on
the individual fields, see the manual pages for
getgrgid_r(3)
and
group(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
§gid: uid_t
§mem: Box<[S]>
Implementations§
Trait Implementations§
Source§impl<S: Ord> Ord for Group<S>
impl<S: Ord> Ord for Group<S>
Source§impl<S: PartialOrd> PartialOrd for Group<S>
impl<S: PartialOrd> PartialOrd for Group<S>
impl<S: Eq> Eq for Group<S>
impl<S> StructuralPartialEq for Group<S>
Auto Trait Implementations§
impl<S> Freeze for Group<S>where
S: Freeze,
impl<S> RefUnwindSafe for Group<S>where
S: RefUnwindSafe,
impl<S> Send for Group<S>where
S: Send,
impl<S> Sync for Group<S>where
S: Sync,
impl<S> Unpin for Group<S>where
S: Unpin,
impl<S> UnwindSafe for Group<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.