#[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>,
}Available on crate features
sync_routes and dbx_users only.Expand description
Basic information about any 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: 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§
Source§impl Clone for BasicAccount
impl Clone for BasicAccount
Source§fn clone(&self) -> BasicAccount
fn clone(&self) -> BasicAccount
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BasicAccount
impl Debug for BasicAccount
Source§impl<'de> Deserialize<'de> for BasicAccount
impl<'de> Deserialize<'de> for BasicAccount
Source§fn 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
Source§impl From<BasicAccount> for Account
impl From<BasicAccount> for Account
Source§fn from(subtype: BasicAccount) -> Self
fn from(subtype: BasicAccount) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BasicAccount
impl PartialEq for BasicAccount
Source§impl Serialize for BasicAccount
impl Serialize for BasicAccount
impl Eq for BasicAccount
impl StructuralPartialEq for BasicAccount
Auto Trait Implementations§
impl Freeze for BasicAccount
impl RefUnwindSafe for BasicAccount
impl Send for BasicAccount
impl Sync for BasicAccount
impl Unpin for BasicAccount
impl UnwindSafe for BasicAccount
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.