#[non_exhaustive]pub struct TeamMemberProfile {Show 17 fields
pub team_member_id: TeamMemberId,
pub email: String,
pub email_verified: bool,
pub status: TeamMemberStatus,
pub name: Name,
pub membership_type: TeamMembershipType,
pub groups: Vec<GroupId>,
pub member_folder_id: NamespaceId,
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
Profile of a user as a member of a team.
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).
groups: Vec<GroupId>
List of group IDs of groups that the user belongs to.
member_folder_id: NamespaceId
The namespace id of the user’s root folder.
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 TeamMemberProfile
impl TeamMemberProfile
pub fn new( team_member_id: TeamMemberId, email: String, email_verified: bool, status: TeamMemberStatus, name: Name, membership_type: TeamMembershipType, groups: Vec<GroupId>, member_folder_id: NamespaceId, ) -> 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 TeamMemberProfile
impl Clone for TeamMemberProfile
Source§fn clone(&self) -> TeamMemberProfile
fn clone(&self) -> TeamMemberProfile
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TeamMemberProfile
impl Debug for TeamMemberProfile
Source§impl<'de> Deserialize<'de> for TeamMemberProfile
impl<'de> Deserialize<'de> for TeamMemberProfile
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 TeamMemberProfile
impl PartialEq for TeamMemberProfile
Source§impl Serialize for TeamMemberProfile
impl Serialize for TeamMemberProfile
impl Eq for TeamMemberProfile
impl StructuralPartialEq for TeamMemberProfile
Auto Trait Implementations§
impl Freeze for TeamMemberProfile
impl RefUnwindSafe for TeamMemberProfile
impl Send for TeamMemberProfile
impl Sync for TeamMemberProfile
impl Unpin for TeamMemberProfile
impl UnwindSafe for TeamMemberProfile
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.