Struct dropbox_sdk::users::Name[][src]

#[non_exhaustive]
pub struct Name { pub given_name: String, pub surname: String, pub familiar_name: String, pub display_name: String, pub abbreviated_name: String, }
This is supported 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: String

Also known as a first name.

surname: String

Also known as a last name or family name.

familiar_name: String

Locale-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: String

A name that can be used directly to represent the name of a user’s Dropbox account.

abbreviated_name: String

An abbreviated form of the person’s name. Their initials in most locales.

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.