#[non_exhaustive]pub struct UserFileMembershipInfo {
pub access_type: AccessLevel,
pub user: UserInfo,
pub permissions: Option<Vec<MemberPermission>>,
pub initials: Option<String>,
pub is_inherited: bool,
pub time_last_seen: Option<DropboxTimestamp>,
pub platform_type: Option<PlatformType>,
}
Available on crate features
sync_routes
and dbx_sharing
only.Expand description
The information about a user member of the shared content with an appended last seen timestamp.
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.
user: UserInfo
The 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: bool
True if the member has access from a parent folder.
time_last_seen: Option<DropboxTimestamp>
The UTC timestamp of when the user has last seen the content. Only populated if the user has seen the content and the caller has a plan that includes viewer history.
platform_type: Option<PlatformType>
The platform on which the user has last seen the content, or unknown.
Implementations§
Source§impl UserFileMembershipInfo
impl UserFileMembershipInfo
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
pub fn with_time_last_seen(self, value: DropboxTimestamp) -> Self
pub fn with_platform_type(self, value: PlatformType) -> Self
Trait Implementations§
Source§impl Clone for UserFileMembershipInfo
impl Clone for UserFileMembershipInfo
Source§fn clone(&self) -> UserFileMembershipInfo
fn clone(&self) -> UserFileMembershipInfo
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 UserFileMembershipInfo
impl Debug for UserFileMembershipInfo
Source§impl<'de> Deserialize<'de> for UserFileMembershipInfo
impl<'de> Deserialize<'de> for UserFileMembershipInfo
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<UserFileMembershipInfo> for UserMembershipInfo
impl From<UserFileMembershipInfo> for UserMembershipInfo
Source§fn from(subtype: UserFileMembershipInfo) -> Self
fn from(subtype: UserFileMembershipInfo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UserFileMembershipInfo
impl PartialEq for UserFileMembershipInfo
Source§impl Serialize for UserFileMembershipInfo
impl Serialize for UserFileMembershipInfo
impl Eq for UserFileMembershipInfo
impl StructuralPartialEq for UserFileMembershipInfo
Auto Trait Implementations§
impl Freeze for UserFileMembershipInfo
impl RefUnwindSafe for UserFileMembershipInfo
impl Send for UserFileMembershipInfo
impl Sync for UserFileMembershipInfo
impl Unpin for UserFileMembershipInfo
impl UnwindSafe for UserFileMembershipInfo
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.