#[non_exhaustive]pub struct Account {
pub account_id: AccountId,
pub name: Name,
pub email: String,
pub email_verified: bool,
pub disabled: bool,
pub profile_photo_url: Option<String>,
}
Available on crate features
sync_routes
and dbx_users
only.Expand description
The amount of detail revealed about an account depends on the user being queried and the user making the query.
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.
profile_photo_url: Option<String>
URL for the photo representing the user, if one is set.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Account
impl<'de> Deserialize<'de> for Account
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 From<FullAccount> for Account
impl From<FullAccount> for Account
Source§fn from(subtype: FullAccount) -> Self
fn from(subtype: FullAccount) -> Self
Converts to this type from the input type.
impl Eq for Account
impl StructuralPartialEq for Account
Auto Trait Implementations§
impl Freeze for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
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.