Enum gedcomx::RelationshipType [−][src]
#[non_exhaustive] pub enum RelationshipType { AncestorDescendant, Couple, EnslavedBy, Godparent, ParentChild, Custom(Uri), }
Expand description
Standard relationship 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 relationship from an ancestor to a descendant.
A relationship of a pair of persons.
A relationship from an enslaved person to the enslaver or slaveholder of the person.
A relationship from a godparent to a person.
A relationship from a parent to a child.
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 RelationshipType
impl Send for RelationshipType
impl Sync for RelationshipType
impl Unpin for RelationshipType
impl UnwindSafe for RelationshipType
Blanket Implementations
Mutably borrows from an owned value. Read more