#[non_exhaustive]pub struct MembershipInfo {
pub access_type: AccessLevel,
pub permissions: Option<Vec<MemberPermission>>,
pub initials: Option<String>,
pub is_inherited: bool,
}
Available on crate features
async_routes
and dbx_sharing
only.Expand description
The information about a 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: 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§
Source§impl MembershipInfo
impl MembershipInfo
pub fn new(access_type: AccessLevel) -> 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§
Source§impl Clone for MembershipInfo
impl Clone for MembershipInfo
Source§fn clone(&self) -> MembershipInfo
fn clone(&self) -> MembershipInfo
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 MembershipInfo
impl Debug for MembershipInfo
Source§impl<'de> Deserialize<'de> for MembershipInfo
impl<'de> Deserialize<'de> for MembershipInfo
Source§fn 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
Source§impl From<GroupMembershipInfo> for MembershipInfo
impl From<GroupMembershipInfo> for MembershipInfo
Source§fn from(subtype: GroupMembershipInfo) -> Self
fn from(subtype: GroupMembershipInfo) -> Self
Converts to this type from the input type.
Source§impl From<InviteeMembershipInfo> for MembershipInfo
impl From<InviteeMembershipInfo> for MembershipInfo
Source§fn from(subtype: InviteeMembershipInfo) -> Self
fn from(subtype: InviteeMembershipInfo) -> Self
Converts to this type from the input type.
Source§impl From<UserMembershipInfo> for MembershipInfo
impl From<UserMembershipInfo> for MembershipInfo
Source§fn from(subtype: UserMembershipInfo) -> Self
fn from(subtype: UserMembershipInfo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MembershipInfo
impl PartialEq for MembershipInfo
Source§impl Serialize for MembershipInfo
impl Serialize for MembershipInfo
impl Eq for MembershipInfo
impl StructuralPartialEq for MembershipInfo
Auto Trait Implementations§
impl Freeze for MembershipInfo
impl RefUnwindSafe for MembershipInfo
impl Send for MembershipInfo
impl Sync for MembershipInfo
impl Unpin for MembershipInfo
impl UnwindSafe for MembershipInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.