#[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.
Principal
The person is the principal person of the event.
For example, the principal of a birth event is the person that was born.
Participant
A participant in the event.
Official
A person officiating the event.
Witness
A witness of the event.
Custom(Uri)
Trait Implementations§
Source§impl Arbitrary for EventRoleType
impl Arbitrary for EventRoleType
Source§impl Clone for EventRoleType
impl Clone for EventRoleType
Source§fn clone(&self) -> EventRoleType
fn clone(&self) -> EventRoleType
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 EventRoleType
impl Debug for EventRoleType
Source§impl Default for EventRoleType
impl Default for EventRoleType
Source§impl<'de> Deserialize<'de> for EventRoleType
impl<'de> Deserialize<'de> for EventRoleType
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 EventRoleType
impl Display for EventRoleType
Source§impl PartialEq for EventRoleType
impl PartialEq for EventRoleType
Source§impl Serialize for EventRoleType
impl Serialize for EventRoleType
Source§impl YaDeserialize for EventRoleType
impl YaDeserialize for EventRoleType
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
Source§impl YaSerialize for EventRoleType
impl YaSerialize for EventRoleType
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 EventRoleType
impl StructuralPartialEq for EventRoleType
Auto Trait Implementations§
impl Freeze for EventRoleType
impl RefUnwindSafe for EventRoleType
impl Send for EventRoleType
impl Sync for EventRoleType
impl Unpin for EventRoleType
impl UnwindSafe for EventRoleType
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