pub struct HumanName {
pub id: Option<Id>,
pub extension: Option<Vec<Extension>>,
pub use_: Option<CodeDt>,
pub text: Option<StringDt>,
pub family: Option<StringDt>,
pub given: Option<Vec<StringDt>>,
pub prefix: Option<Vec<StringDt>>,
pub suffix: Option<Vec<StringDt>>,
pub period: Option<Period>,
}
Fields§
§id: Option<Id>
Unique id for inter-element referencing
extension: Option<Vec<Extension>>
Additional content defined by implementations
use_: Option<CodeDt>
usual | official | temp | nickname | anonymous | old | maiden
text: Option<StringDt>
Text representation of the full name
family: Option<StringDt>
Family name (often called ‘Surname’)
given: Option<Vec<StringDt>>
Given names (not always ‘first’). Includes middle names
prefix: Option<Vec<StringDt>>
Parts that come before the name
suffix: Option<Vec<StringDt>>
Parts that come after the name
period: Option<Period>
Time period when name was/is in use
Implementations§
source§impl HumanName
impl HumanName
pub fn set_use_<T: Into<CodeDt>>(self, v: T) -> Self
pub fn set_text<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_family<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_given(self, v: Vec<StringDt>) -> Self
pub fn add_given<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_prefix(self, v: Vec<StringDt>) -> Self
pub fn add_prefix<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_suffix(self, v: Vec<StringDt>) -> Self
pub fn add_suffix<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_period(self, v: Period) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for HumanName
impl<'de> Deserialize<'de> for HumanName
fn deserialize<De>(deserializer: De) -> Result<Self>where
De: Deserializer<'de>,
source§impl Element for HumanName
impl Element for HumanName
fn has_id(&self) -> bool
fn id(&self) -> &Option<String>
fn set_id<T: Into<String>>(self, id: T) -> Self
fn has_extension(&self) -> bool
fn extension(&self) -> &Option<Vec<Extension>>
fn set_extension(self, ext: Vec<Extension>) -> Self
fn add_extension(self, ext: Extension) -> Self
Auto Trait Implementations§
impl RefUnwindSafe for HumanName
impl Send for HumanName
impl Sync for HumanName
impl Unpin for HumanName
impl UnwindSafe for HumanName
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
Mutably borrows from an owned value. Read more