#[non_exhaustive]pub enum EventStatus {
EventScheduled,
EventCancelled,
EventPostponed,
EventRescheduled,
EventMovedOnline,
}Expand description
Schema.org EventStatusType — the lifecycle state of an event.
The variants are the five enumeration values defined at https://schema.org/EventStatusType.
The enum is #[non_exhaustive] so future variants can be added without
breaking SemVer for downstream pattern matches.
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.
EventScheduled
schema:EventScheduled — the event is confirmed and on track.
EventCancelled
schema:EventCancelled — the event will not take place.
EventPostponed
schema:EventPostponed — the event has been postponed, no new date yet.
EventRescheduled
schema:EventRescheduled — the event has been moved to a new date.
EventMovedOnline
schema:EventMovedOnline — the event has moved to a virtual format.
Trait Implementations§
Source§impl Clone for EventStatus
impl Clone for EventStatus
Source§fn clone(&self) -> EventStatus
fn clone(&self) -> EventStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EventStatus
Source§impl Debug for EventStatus
impl Debug for EventStatus
Source§impl<'de> Deserialize<'de> for EventStatus
impl<'de> Deserialize<'de> for EventStatus
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
impl Eq for EventStatus
Source§impl Hash for EventStatus
impl Hash for EventStatus
Source§impl PartialEq for EventStatus
impl PartialEq for EventStatus
Source§fn eq(&self, other: &EventStatus) -> bool
fn eq(&self, other: &EventStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EventStatus
impl Serialize for EventStatus
impl StructuralPartialEq for EventStatus
Auto Trait Implementations§
impl Freeze for EventStatus
impl RefUnwindSafe for EventStatus
impl Send for EventStatus
impl Sync for EventStatus
impl Unpin for EventStatus
impl UnsafeUnpin for EventStatus
impl UnwindSafe for EventStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more