[][src]Struct dropbox_sdk::sharing::MembershipInfo

pub struct MembershipInfo {
    pub access_type: AccessLevel,
    pub permissions: Option<Vec<MemberPermission>>,
    pub initials: Option<String>,
    pub is_inherited: bool,
}
This is supported on crate feature dbx_sharing only.

The information about a member of the shared content.

Fields

access_type: AccessLevel

The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder.

permissions: Option<Vec<MemberPermission>>

The permissions that requesting user has on this member. The set of permissions corresponds to the MemberActions in the request.

initials: Option<String>

Never set.

is_inherited: bool

True if the member has access from a parent folder.

Implementations

impl MembershipInfo[src]

pub fn new(access_type: AccessLevel) -> Self[src]

pub fn with_permissions(self, value: Option<Vec<MemberPermission>>) -> Self[src]

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

pub fn with_is_inherited(self, value: bool) -> Self[src]

Trait Implementations

impl Debug for MembershipInfo[src]

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

impl Serialize for MembershipInfo[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.