pub struct PersonName {
pub family_names: Option<String>,
pub given_names: Option<String>,
pub name_particle: Option<String>,
pub name_suffix: Option<String>,
pub affiliation: Option<String>,
pub meta: NameMeta,
}Expand description
The name of a person.
At least one field must be provided.
Fields§
§family_names: Option<String>Family names.
This includes combinations of given and patronymic forms, such as Guðmundsdóttir or bin Osman; double names with or without hyphen, such as Leutheusser-Schnarrenberger or Sánchez Vicario. It can potentially also specify names that include prepositions or (nobiliary) particles, especially if they occur in between family names such as in Spanish- or Portuguese-origin names, such as Fernández de Córdoba.
given_names: Option<String>Given or chosen names.
name_particle: Option<String>The person’s name particle.
For example, a nobiliary particle, or a preposition meaning of or from (for example von in Alexander von Humboldt).
This may also be called the “non-dropping particle”.
name_suffix: Option<String>The person’s name suffix.
For example, Jr. for Sammy Davis Jr. or III for Frank Edwin Wright III.
affiliation: Option<String>Affiliation (e.g. organisation membership).
meta: NameMetaCommon name metadata fields.
Trait Implementations§
Source§impl Clone for PersonName
impl Clone for PersonName
Source§fn clone(&self) -> PersonName
fn clone(&self) -> PersonName
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PersonName
impl Debug for PersonName
Source§impl Default for PersonName
impl Default for PersonName
Source§fn default() -> PersonName
fn default() -> PersonName
Source§impl<'de> Deserialize<'de> for PersonName
impl<'de> Deserialize<'de> for PersonName
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for PersonName
impl PartialEq for PersonName
Source§fn eq(&self, other: &PersonName) -> bool
fn eq(&self, other: &PersonName) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for PersonName
impl Serialize for PersonName
impl Eq for PersonName
impl StructuralPartialEq for PersonName
Auto Trait Implementations§
impl Freeze for PersonName
impl RefUnwindSafe for PersonName
impl Send for PersonName
impl Sync for PersonName
impl Unpin for PersonName
impl UnsafeUnpin for PersonName
impl UnwindSafe for PersonName
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
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
key and return true if they are equal.