#[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>,
}
Available on crate feature dbx_users only.
Expand description

Detailed information about the current user’s account.

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional 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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.