#[non_exhaustive]pub struct FullAccount {Show 14 fields
pub account_id: AccountId,
pub name: Name,
pub email: String,
pub email_verified: bool,
pub disabled: bool,
pub locale: String,
pub referral_link: String,
pub is_paired: bool,
pub account_type: AccountType,
pub root_info: RootInfo,
pub profile_photo_url: Option<String>,
pub country: Option<String>,
pub team: Option<FullTeam>,
pub team_member_id: Option<String>,
}
sync_routes
and dbx_users
only.Expand description
Detailed information about the current user’s account.
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.account_id: AccountId
The user’s unique Dropbox ID.
name: Name
Details of a user’s name.
email: String
The user’s email address. Do not rely on this without checking the email_verified
field.
Even then, it’s possible that the user has since lost access to their email.
email_verified: bool
Whether the user has verified their email address.
disabled: bool
Whether the user has been disabled.
locale: String
The language that the user specified. Locale tags will be IETF language tags.
referral_link: String
The user’s referral link.
is_paired: bool
Whether the user has a personal and work account. If the current account is personal, then
team
will always be None
, but is_paired
will indicate if a work account is linked.
account_type: AccountType
What type of account this user has.
root_info: RootInfo
The root info for this account.
profile_photo_url: Option<String>
URL for the photo representing the user, if one is set.
country: Option<String>
The user’s two-letter country code, if available. Country codes are based on ISO 3166-1.
team: Option<FullTeam>
If this account is a member of a team, information about that team.
team_member_id: Option<String>
This account’s unique team member id. This field will only be present if team
is present.
Implementations§
Source§impl FullAccount
impl FullAccount
pub fn new( account_id: AccountId, name: Name, email: String, email_verified: bool, disabled: bool, locale: String, referral_link: String, is_paired: bool, account_type: AccountType, root_info: RootInfo, ) -> Self
pub fn with_profile_photo_url(self, value: String) -> Self
pub fn with_country(self, value: String) -> Self
pub fn with_team(self, value: FullTeam) -> Self
pub fn with_team_member_id(self, value: String) -> Self
Trait Implementations§
Source§impl Clone for FullAccount
impl Clone for FullAccount
Source§fn clone(&self) -> FullAccount
fn clone(&self) -> FullAccount
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FullAccount
impl Debug for FullAccount
Source§impl<'de> Deserialize<'de> for FullAccount
impl<'de> Deserialize<'de> for FullAccount
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<FullAccount> for Account
impl From<FullAccount> for Account
Source§fn from(subtype: FullAccount) -> Self
fn from(subtype: FullAccount) -> Self
Source§impl PartialEq for FullAccount
impl PartialEq for FullAccount
Source§impl Serialize for FullAccount
impl Serialize for FullAccount
impl Eq for FullAccount
impl StructuralPartialEq for FullAccount
Auto Trait Implementations§
impl Freeze for FullAccount
impl RefUnwindSafe for FullAccount
impl Send for FullAccount
impl Sync for FullAccount
impl Unpin for FullAccount
impl UnwindSafe for FullAccount
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.