Struct dropbox_sdk::users::FullAccount
source · [−]#[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>,
}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: AccountIdThe user’s unique Dropbox ID.
name: NameDetails of a user’s name.
email: StringThe 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: boolWhether the user has verified their email address.
disabled: boolWhether the user has been disabled.
locale: StringThe language that the user specified. Locale tags will be IETF language tags.
referral_link: StringThe user’s referral link.
is_paired: boolWhether 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: AccountTypeWhat type of account this user has.
root_info: RootInfoThe 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
sourceimpl 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
sourceimpl Clone for FullAccount
impl Clone for FullAccount
sourcefn clone(&self) -> FullAccount
fn clone(&self) -> FullAccount
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 FullAccount
impl Debug for FullAccount
sourceimpl<'de> Deserialize<'de> for FullAccount
impl<'de> Deserialize<'de> for FullAccount
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<FullAccount> for FullAccount
impl PartialEq<FullAccount> for FullAccount
sourcefn eq(&self, other: &FullAccount) -> bool
fn eq(&self, other: &FullAccount) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &FullAccount) -> bool
fn ne(&self, other: &FullAccount) -> bool
This method tests for !=.
sourceimpl Serialize for FullAccount
impl Serialize for FullAccount
impl Eq for FullAccount
impl StructuralEq for FullAccount
impl StructuralPartialEq for FullAccount
Auto Trait Implementations
impl RefUnwindSafe for FullAccount
impl Send for FullAccount
impl Sync for FullAccount
impl Unpin for FullAccount
impl UnwindSafe for FullAccount
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