Struct users::Group [] [src]

pub struct Group {
    pub name_arc: Arc<String>,
    // some fields omitted
}

Information about a particular group.

Fields

This group’s name, as an owned String possibly shared with a cache. Prefer using the name() accessor to using this field, if possible.

Methods

impl Group
[src]

Create a new Group with the given group ID and name, with the rest of the fields filled in with dummy values.

This method does not actually create a new group on the system—it should only be used for comparing groups in tests.

Returns this group’s ID.

Returns this group's name.

Trait Implementations

impl GroupExt for Group
[src]

Returns a slice of the list of users that are in this group as their non-primary group. Read more

Adds a new member to this group.

impl Clone for Group
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Group
[src]

Formats the value using the given formatter.