#[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.
Trait Implementations§
Source§impl Arbitrary for NamePartType
impl Arbitrary for NamePartType
Source§impl Clone for NamePartType
impl Clone for NamePartType
Source§fn clone(&self) -> NamePartType
fn clone(&self) -> NamePartType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NamePartType
impl Debug for NamePartType
Source§impl Default for NamePartType
impl Default for NamePartType
Source§impl<'de> Deserialize<'de> for NamePartType
impl<'de> Deserialize<'de> for NamePartType
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for NamePartType
impl Display for NamePartType
Source§impl PartialEq for NamePartType
impl PartialEq for NamePartType
Source§impl Serialize for NamePartType
impl Serialize for NamePartType
Source§impl YaDeserialize for NamePartType
impl YaDeserialize for NamePartType
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
Source§impl YaSerialize for NamePartType
impl YaSerialize for NamePartType
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
fn serialize_attributes( &self, attributes: Vec<OwnedAttribute>, namespace: Namespace, ) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl Eq for NamePartType
impl StructuralPartialEq for NamePartType
Auto Trait Implementations§
impl Freeze for NamePartType
impl RefUnwindSafe for NamePartType
impl Send for NamePartType
impl Sync for NamePartType
impl Unpin for NamePartType
impl UnwindSafe for NamePartType
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