#[non_exhaustive]pub struct MemberProfile {Show 15 fields
pub team_member_id: TeamMemberId,
pub email: String,
pub email_verified: bool,
pub status: TeamMemberStatus,
pub name: Name,
pub membership_type: TeamMembershipType,
pub external_id: Option<String>,
pub account_id: Option<AccountId>,
pub secondary_emails: Option<Vec<SecondaryEmail>>,
pub invited_on: Option<DropboxTimestamp>,
pub joined_on: Option<DropboxTimestamp>,
pub suspended_on: Option<DropboxTimestamp>,
pub persistent_id: Option<String>,
pub is_directory_restricted: Option<bool>,
pub profile_photo_url: Option<String>,
}
sync_routes
and dbx_team
only.Expand description
Basic member profile.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.team_member_id: TeamMemberId
ID of user as a member of a team.
email: String
Email address of user.
email_verified: bool
Is true if the user’s email is verified to be owned by the user.
status: TeamMemberStatus
The user’s status as a member of a specific team.
name: Name
Representations for a person’s name.
membership_type: TeamMembershipType
The user’s membership type: full (normal team member) vs limited (does not use a license; no access to the team’s shared quota).
external_id: Option<String>
External ID that a team can attach to the user. An application using the API may find it easier to use their own IDs instead of Dropbox IDs like account_id or team_member_id.
account_id: Option<AccountId>
A user’s account identifier.
secondary_emails: Option<Vec<SecondaryEmail>>
Secondary emails of a user.
invited_on: Option<DropboxTimestamp>
The date and time the user was invited to the team (contains value only when the member’s
status matches TeamMemberStatus::Invited
).
joined_on: Option<DropboxTimestamp>
The date and time the user joined as a member of a specific team.
suspended_on: Option<DropboxTimestamp>
The date and time the user was suspended from the team (contains value only when the
member’s status matches TeamMemberStatus::Suspended
).
persistent_id: Option<String>
Persistent ID that a team can attach to the user. The persistent ID is unique ID to be used for SAML authentication.
is_directory_restricted: Option<bool>
Whether the user is a directory restricted user.
profile_photo_url: Option<String>
URL for the photo representing the user, if one is set.
Implementations§
Source§impl MemberProfile
impl MemberProfile
pub fn new( team_member_id: TeamMemberId, email: String, email_verified: bool, status: TeamMemberStatus, name: Name, membership_type: TeamMembershipType, ) -> Self
pub fn with_external_id(self, value: String) -> Self
pub fn with_account_id(self, value: AccountId) -> Self
pub fn with_secondary_emails(self, value: Vec<SecondaryEmail>) -> Self
pub fn with_invited_on(self, value: DropboxTimestamp) -> Self
pub fn with_joined_on(self, value: DropboxTimestamp) -> Self
pub fn with_suspended_on(self, value: DropboxTimestamp) -> Self
pub fn with_persistent_id(self, value: String) -> Self
pub fn with_is_directory_restricted(self, value: bool) -> Self
pub fn with_profile_photo_url(self, value: String) -> Self
Trait Implementations§
Source§impl Clone for MemberProfile
impl Clone for MemberProfile
Source§fn clone(&self) -> MemberProfile
fn clone(&self) -> MemberProfile
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MemberProfile
impl Debug for MemberProfile
Source§impl<'de> Deserialize<'de> for MemberProfile
impl<'de> Deserialize<'de> for MemberProfile
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl From<TeamMemberProfile> for MemberProfile
impl From<TeamMemberProfile> for MemberProfile
Source§fn from(subtype: TeamMemberProfile) -> Self
fn from(subtype: TeamMemberProfile) -> Self
Source§impl PartialEq for MemberProfile
impl PartialEq for MemberProfile
Source§impl Serialize for MemberProfile
impl Serialize for MemberProfile
impl Eq for MemberProfile
impl StructuralPartialEq for MemberProfile
Auto Trait Implementations§
impl Freeze for MemberProfile
impl RefUnwindSafe for MemberProfile
impl Send for MemberProfile
impl Sync for MemberProfile
impl Unpin for MemberProfile
impl UnwindSafe for MemberProfile
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
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
key
and return true
if they are equal.