Struct Name

Source
pub struct Name {
    pub value: Option<String>,
    pub given: Option<String>,
    pub surname: Option<String>,
    pub nickname: Option<String>,
    pub prefix: Option<String>,
    pub suffix: Option<String>,
    pub surname_prefix: Option<String>,
    pub note: Option<NoteStructure>,
    pub type: Option<String>,
}

Fields§

§value: Option<String>

The value of the Name level

§given: Option<String>

GIVN Given name or earned name. Different given names are separated by a comma.

§surname: Option<String>

SURN Surname or family name. Different surnames are separated by a comma.

§nickname: Option<String>

NICK A descriptive or familiar name used in connection with one’s proper name.

§prefix: Option<String>

NPFX Non indexing name piece that appears preceding the given name and surname parts. Different name prefix parts are separated by a comma.

Lt. Cmndr. Joseph /Allen/ jr. In this example Lt. Cmndr. is considered as the name prefix portion.

§suffix: Option<String>

SPFX Non-indexing name piece that appears after the given name and surname parts. Different name suffix parts are separated by a comma.

For example: Lt. Cmndr. Joseph /Allen/ jr. In this example jr. is considered as the name suffix portion.

§surname_prefix: Option<String>

NSFX Surname prefix or article used in a family name. Different surname articles are separated by a comma, for example in the name “de la Cruz”, this value would be “de, la”.

§note: Option<NoteStructure>§type: Option<String>

Trait Implementations§

Source§

impl Debug for Name

Source§

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

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

impl Default for Name

Source§

fn default() -> Name

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

Auto Trait Implementations§

§

impl Freeze for Name

§

impl RefUnwindSafe for Name

§

impl Send for Name

§

impl Sync for Name

§

impl Unpin for Name

§

impl UnwindSafe for Name

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> 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, 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.