Struct dropbox_sdk::users::BasicAccount
source · [−]#[non_exhaustive]pub struct BasicAccount {
pub account_id: AccountId,
pub name: Name,
pub email: String,
pub email_verified: bool,
pub disabled: bool,
pub is_teammate: bool,
pub profile_photo_url: Option<String>,
pub team_member_id: Option<String>,
}dbx_users only.Expand description
Basic information about any 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.
is_teammate: boolWhether this user is a teammate of the current user. If this account is the current user’s
account, then this will be true.
profile_photo_url: Option<String>URL for the photo representing the user, if one is set.
team_member_id: Option<String>The user’s unique team member id. This field will only be present if the user is part of a
team and is_teammate is true.
Implementations
Trait Implementations
sourceimpl Clone for BasicAccount
impl Clone for BasicAccount
sourcefn clone(&self) -> BasicAccount
fn clone(&self) -> BasicAccount
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 BasicAccount
impl Debug for BasicAccount
sourceimpl<'de> Deserialize<'de> for BasicAccount
impl<'de> Deserialize<'de> for BasicAccount
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<BasicAccount> for BasicAccount
impl PartialEq<BasicAccount> for BasicAccount
sourcefn eq(&self, other: &BasicAccount) -> bool
fn eq(&self, other: &BasicAccount) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &BasicAccount) -> bool
fn ne(&self, other: &BasicAccount) -> bool
This method tests for !=.
sourceimpl Serialize for BasicAccount
impl Serialize for BasicAccount
impl Eq for BasicAccount
impl StructuralEq for BasicAccount
impl StructuralPartialEq for BasicAccount
Auto Trait Implementations
impl RefUnwindSafe for BasicAccount
impl Send for BasicAccount
impl Sync for BasicAccount
impl Unpin for BasicAccount
impl UnwindSafe for BasicAccount
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