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: PartialEq> PartialEq<Group<S>> for Group<S>
impl<S: PartialEq> PartialEq<Group<S>> for Group<S>
source§impl<S: PartialOrd> PartialOrd<Group<S>> for Group<S>
impl<S: PartialOrd> PartialOrd<Group<S>> for Group<S>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<S: Eq> Eq for Group<S>
impl<S> StructuralEq for Group<S>
impl<S> StructuralPartialEq for Group<S>
Auto Trait Implementations§
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