Struct gedcomx::NamePart [−][src]
#[non_exhaustive]pub struct NamePart { pub part_type: Option<NamePartType>, pub value: String, pub qualifiers: Vec<Qualifier>, }
Expand description
A portion of a full name, including the terms that make up that portion.
Some name parts may have qualifiers to provide additional semantic meaning to the name part (e.g., “given name” or “surname”).
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.part_type: Option<NamePartType>
The type of the name part.
value: String
The term(s) from the name that make up this name part.
A name part value MAY contain more than one term from the full name, such as in the name part “John Fitzgerald” from the full name “John Fitzgerald Kennedy”. If multiple terms are detailed in a single NamePart, these terms SHOULD be separated using the name separator appropriate to the locale applicable to the containing name form.
qualifiers: Vec<Qualifier>
Qualifiers to add additional semantic meaning to the name part.
If present, use of a
NamePartQualifier
is
RECOMMENDED.
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
fn serialize_attributes(
&self,
source_attributes: Vec<OwnedAttribute>,
source_namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
[src]Auto Trait Implementations
impl RefUnwindSafe for NamePart
impl UnwindSafe for NamePart
Blanket Implementations
Mutably borrows from an owned value. Read more