Enum gedcomx::NamePartType [−][src]
#[non_exhaustive] pub enum NamePartType { Prefix, Suffix, Given, Surname, Custom(Uri), }
Expand description
Standard name part types.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
A name prefix.
A name suffix.
A given name.
A surname.
Custom(Uri)
Trait Implementations
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>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
fn serialize_attributes(
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
Auto Trait Implementations
impl RefUnwindSafe for NamePartType
impl Send for NamePartType
impl Sync for NamePartType
impl Unpin for NamePartType
impl UnwindSafe for NamePartType
Blanket Implementations
Mutably borrows from an owned value. Read more