Struct dropbox_sdk::sharing::UserMembershipInfo
source · [−]#[non_exhaustive]pub struct UserMembershipInfo {
pub access_type: AccessLevel,
pub user: UserInfo,
pub permissions: Option<Vec<MemberPermission>>,
pub initials: Option<String>,
pub is_inherited: bool,
}Available on crate feature
dbx_sharing only.Expand description
The information about a user member of the shared content.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.access_type: AccessLevelThe access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder.
user: UserInfoThe account information for the membership user.
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: boolTrue if the member has access from a parent folder.
Implementations
sourceimpl UserMembershipInfo
impl UserMembershipInfo
pub fn new(access_type: AccessLevel, user: UserInfo) -> Self
pub fn with_permissions(self, value: Vec<MemberPermission>) -> Self
pub fn with_initials(self, value: String) -> Self
pub fn with_is_inherited(self, value: bool) -> Self
Trait Implementations
sourceimpl Clone for UserMembershipInfo
impl Clone for UserMembershipInfo
sourcefn clone(&self) -> UserMembershipInfo
fn clone(&self) -> UserMembershipInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for UserMembershipInfo
impl Debug for UserMembershipInfo
sourceimpl<'de> Deserialize<'de> for UserMembershipInfo
impl<'de> Deserialize<'de> for UserMembershipInfo
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<UserMembershipInfo> for UserMembershipInfo
impl PartialEq<UserMembershipInfo> for UserMembershipInfo
sourcefn eq(&self, other: &UserMembershipInfo) -> bool
fn eq(&self, other: &UserMembershipInfo) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &UserMembershipInfo) -> bool
fn ne(&self, other: &UserMembershipInfo) -> bool
This method tests for !=.
sourceimpl Serialize for UserMembershipInfo
impl Serialize for UserMembershipInfo
impl Eq for UserMembershipInfo
impl StructuralEq for UserMembershipInfo
impl StructuralPartialEq for UserMembershipInfo
Auto Trait Implementations
impl RefUnwindSafe for UserMembershipInfo
impl Send for UserMembershipInfo
impl Sync for UserMembershipInfo
impl Unpin for UserMembershipInfo
impl UnwindSafe for UserMembershipInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more