Enum gedcomx::GenderType
source · #[non_exhaustive]pub enum GenderType {
Male,
Female,
Unknown,
Intersex,
Custom(Uri),
}
Expand description
Type of gender.
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.
Male
Male gender.
Female
Female gender.
Unknown
Unknown gender.
Intersex
Intersex (assignment at birth).
Custom(Uri)
Trait Implementations§
source§impl Arbitrary for GenderType
impl Arbitrary for GenderType
source§impl Clone for GenderType
impl Clone for GenderType
source§fn clone(&self) -> GenderType
fn clone(&self) -> GenderType
Returns a copy 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 GenderType
impl Debug for GenderType
source§impl Default for GenderType
impl Default for GenderType
source§impl<'de> Deserialize<'de> for GenderType
impl<'de> Deserialize<'de> for GenderType
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 GenderType
impl Display for GenderType
source§impl From<GenderType> for Gender
impl From<GenderType> for Gender
source§fn from(gender_type: GenderType) -> Self
fn from(gender_type: GenderType) -> Self
Converts to this type from the input type.
source§impl PartialEq<GenderType> for GenderType
impl PartialEq<GenderType> for GenderType
source§fn eq(&self, other: &GenderType) -> bool
fn eq(&self, other: &GenderType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GenderType
impl Serialize for GenderType
source§impl YaDeserialize for GenderType
impl YaDeserialize for GenderType
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
source§impl YaSerialize for GenderType
impl YaSerialize for GenderType
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 GenderType
impl StructuralEq for GenderType
impl StructuralPartialEq for GenderType
Auto Trait Implementations§
impl RefUnwindSafe for GenderType
impl Send for GenderType
impl Sync for GenderType
impl Unpin for GenderType
impl UnwindSafe for GenderType
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