Enum gedcomx::EventRoleType [−][src]
#[non_exhaustive] pub enum EventRoleType { Principal, Participant, Official, Witness, Custom(Uri), }
Expand description
Standard event roles.
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.
The person is the principal person of the event.
For example, the principal of a birth event is the person that was born.
A participant in the event.
A person officiating the event.
A witness of the event.
Custom(Uri)
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
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>
[src]Auto Trait Implementations
impl RefUnwindSafe for EventRoleType
impl Send for EventRoleType
impl Sync for EventRoleType
impl Unpin for EventRoleType
impl UnwindSafe for EventRoleType
Blanket Implementations
Mutably borrows from an owned value. Read more