Struct dropbox_sdk::team::TeamMemberProfile
source · [−]#[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>,
}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: TeamMemberIdID of user as a member of a team.
email: StringEmail address of user.
email_verified: boolIs true if the user’s email is verified to be owned by the user.
status: TeamMemberStatusThe user’s status as a member of a specific team.
name: NameRepresentations for a person’s name.
membership_type: TeamMembershipTypeThe 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: NamespaceIdThe 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
sourceimpl 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
sourceimpl Clone for TeamMemberProfile
impl Clone for TeamMemberProfile
sourcefn clone(&self) -> TeamMemberProfile
fn clone(&self) -> TeamMemberProfile
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 TeamMemberProfile
impl Debug for TeamMemberProfile
sourceimpl<'de> Deserialize<'de> for TeamMemberProfile
impl<'de> Deserialize<'de> for TeamMemberProfile
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<TeamMemberProfile> for TeamMemberProfile
impl PartialEq<TeamMemberProfile> for TeamMemberProfile
sourcefn eq(&self, other: &TeamMemberProfile) -> bool
fn eq(&self, other: &TeamMemberProfile) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TeamMemberProfile) -> bool
fn ne(&self, other: &TeamMemberProfile) -> bool
This method tests for !=.
sourceimpl Serialize for TeamMemberProfile
impl Serialize for TeamMemberProfile
impl Eq for TeamMemberProfile
impl StructuralEq for TeamMemberProfile
impl StructuralPartialEq for TeamMemberProfile
Auto Trait Implementations
impl RefUnwindSafe for TeamMemberProfile
impl Send for TeamMemberProfile
impl Sync for TeamMemberProfile
impl Unpin for TeamMemberProfile
impl UnwindSafe for TeamMemberProfile
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