Struct dropbox_sdk::users::Name
source · [−]#[non_exhaustive]pub struct Name {
pub given_name: String,
pub surname: String,
pub familiar_name: String,
pub display_name: String,
pub abbreviated_name: String,
}Available on crate feature
dbx_users only.Expand description
Representations for a person’s name to assist with internationalization.
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.given_name: StringAlso known as a first name.
surname: StringAlso known as a last name or family name.
familiar_name: StringLocale-dependent name. In the US, a person’s familiar name is their given_name, but
elsewhere, it could be any combination of a person’s given_name and surname.
display_name: StringA name that can be used directly to represent the name of a user’s Dropbox account.
abbreviated_name: StringAn abbreviated form of the person’s name. Their initials in most locales.
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Name
impl<'de> Deserialize<'de> for Name
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
impl Eq for Name
impl StructuralEq for Name
impl StructuralPartialEq for Name
Auto Trait Implementations
impl RefUnwindSafe for Name
impl Send for Name
impl Sync for Name
impl Unpin for Name
impl UnwindSafe for Name
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