pub struct GroupEntry {
pub name: String,
pub passwd: String,
pub gid: u32,
pub users: Vec<String>,
}
Expand description
A group entry, representing one row in
/etc/group
Fields§
§name: String
§passwd: String
§gid: u32
§users: Vec<String>
Implementations§
Source§impl GroupEntry
impl GroupEntry
Sourcepub fn parse(s: &str) -> Option<GroupEntry>
pub fn parse(s: &str) -> Option<GroupEntry>
Create a GroupEntry from &str.
Trait Implementations§
Source§impl Clone for GroupEntry
impl Clone for GroupEntry
Source§fn clone(&self) -> GroupEntry
fn clone(&self) -> GroupEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GroupEntry
impl Debug for GroupEntry
Source§impl PartialEq for GroupEntry
impl PartialEq for GroupEntry
impl Eq for GroupEntry
impl StructuralPartialEq for GroupEntry
Auto Trait Implementations§
impl Freeze for GroupEntry
impl RefUnwindSafe for GroupEntry
impl Send for GroupEntry
impl Sync for GroupEntry
impl Unpin for GroupEntry
impl UnwindSafe for GroupEntry
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