[][src]Struct dropbox_sdk::sharing::GroupInfo

pub struct GroupInfo {
    pub group_name: String,
    pub group_id: GroupId,
    pub group_management_type: GroupManagementType,
    pub group_type: GroupType,
    pub is_member: bool,
    pub is_owner: bool,
    pub same_team: bool,
    pub group_external_id: Option<GroupExternalId>,
    pub member_count: Option<u32>,
}
This is supported on crate feature dbx_sharing only.

The information about a group. Groups is a way to manage a list of users who need same access permission to the shared folder.

Fields

group_name: Stringgroup_id: GroupIdgroup_management_type: GroupManagementType

Who is allowed to manage the group.

group_type: GroupType

The type of group.

is_member: bool

If the current user is a member of the group.

is_owner: bool

If the current user is an owner of the group.

same_team: bool

If the group is owned by the current user's team.

group_external_id: Option<GroupExternalId>

External ID of group. This is an arbitrary ID that an admin can attach to a group.

member_count: Option<u32>

The number of members in the group.

Implementations

impl GroupInfo[src]

pub fn new(
    group_name: String,
    group_id: GroupId,
    group_management_type: GroupManagementType,
    group_type: GroupType,
    is_member: bool,
    is_owner: bool,
    same_team: bool
) -> Self
[src]

pub fn with_group_external_id(self, value: Option<GroupExternalId>) -> Self[src]

pub fn with_member_count(self, value: Option<u32>) -> Self[src]

Trait Implementations

impl Debug for GroupInfo[src]

impl<'de> Deserialize<'de> for GroupInfo[src]

impl Serialize for GroupInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.