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 Convert for HumanName
impl Convert for HumanName
fn to_integer(&self) -> Result<Integer>
fn to_decimal(&self) -> Result<Decimal>
fn to_strings(&self) -> Result<String>
fn to_datetime(&self) -> Result<DateTime>
fn to_boolean(&self) -> Result<Boolean>
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 Executor for HumanName
impl Executor for HumanName
fn element(&self, symbol: &String, index: &Option<usize>) -> Result<Collection>
fn to_collection(&self, index: &Option<usize>) -> Collection
fn child(&self, _index: usize) -> Result<Collection>
impl DataType for HumanName
Auto Trait Implementations§
impl Freeze for HumanName
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