PersonNameCredential

Struct PersonNameCredential 

Source
pub struct PersonNameCredential<E = ()> {
    pub title: Option<EditableField<EditableFieldString, E>>,
    pub given: Option<EditableField<EditableFieldString, E>>,
    pub given_informal: Option<EditableField<EditableFieldString, E>>,
    pub given2: Option<EditableField<EditableFieldString, E>>,
    pub surname_prefix: Option<EditableField<EditableFieldString, E>>,
    pub surname: Option<EditableField<EditableFieldString, E>>,
    pub surname2: Option<EditableField<EditableFieldString, E>>,
    pub credentials: Option<EditableField<EditableFieldString, E>>,
    pub generation: Option<EditableField<EditableFieldString, E>>,
}
Expand description

A PersonNameCredential represents a person’s name as fields derived from Unicode Locale Data Markup Language Part 8: Person Names.

All fields are marked as optional because an exporting provider SHOULD refrain from making decisions about splitting up a name into any parts that were not explicitly provided as such, since that often introduces errors.

Fields§

§title: Option<EditableField<EditableFieldString, E>>

This field contains a title or honorific qualifier. For example, “Ms.”, “Mr.”, or “Dr”.

§given: Option<EditableField<EditableFieldString, E>>

This field the person’s given name.

§given_informal: Option<EditableField<EditableFieldString, E>>

This field contains a nickname or preferred name.

§given2: Option<EditableField<EditableFieldString, E>>

This field contains additional names or middle names.

§surname_prefix: Option<EditableField<EditableFieldString, E>>

This field contains the prefix of the surname. For example, “van der” in “van der Poel” or “bint” in “bint Fadi”.

§surname: Option<EditableField<EditableFieldString, E>>

This field contains the person’s family name.

§surname2: Option<EditableField<EditableFieldString, E>>

This field contains the person’s secondary surname, which is used in some cultures.

§credentials: Option<EditableField<EditableFieldString, E>>

This field contains a credential or accreditation qualifier. For example, “PhD” or “MBA”.

§generation: Option<EditableField<EditableFieldString, E>>

This field contains a generation qualifier. For example, “Jr.” or “III”.

Trait Implementations§

Source§

impl<E: Clone> Clone for PersonNameCredential<E>

Source§

fn clone(&self) -> PersonNameCredential<E>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<E: Debug> Debug for PersonNameCredential<E>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<E: Default> Default for PersonNameCredential<E>

Source§

fn default() -> PersonNameCredential<E>

Returns the “default value” for a type. Read more
Source§

impl<'de, E> Deserialize<'de> for PersonNameCredential<E>
where E: Deserialize<'de>,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<E> Serialize for PersonNameCredential<E>
where E: Serialize,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<E> Freeze for PersonNameCredential<E>

§

impl<E> RefUnwindSafe for PersonNameCredential<E>
where E: RefUnwindSafe,

§

impl<E> Send for PersonNameCredential<E>
where E: Send,

§

impl<E> Sync for PersonNameCredential<E>
where E: Sync,

§

impl<E> Unpin for PersonNameCredential<E>
where E: Unpin,

§

impl<E> UnwindSafe for PersonNameCredential<E>
where E: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,