#[non_exhaustive]pub enum BookingStatus {
New,
PendingPayment,
Paid,
RequestSent,
Reviewed,
Confirmed,
Cancelled,
PendingReview,
RequestFailed,
BookedManually,
}Expand description
Enum describing the status of a booking
As defined by the specification
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.
New
PendingPayment
Paid
RequestSent
Reviewed
Confirmed
Cancelled
PendingReview
RequestFailed
BookedManually
Trait Implementations§
Source§impl Debug for BookingStatus
impl Debug for BookingStatus
Source§impl Default for BookingStatus
impl Default for BookingStatus
Source§fn default() -> BookingStatus
fn default() -> BookingStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BookingStatus
impl<'de> Deserialize<'de> for BookingStatus
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 PartialEq for BookingStatus
impl PartialEq for BookingStatus
impl Eq for BookingStatus
impl StructuralPartialEq for BookingStatus
Auto Trait Implementations§
impl Freeze for BookingStatus
impl RefUnwindSafe for BookingStatus
impl Send for BookingStatus
impl Sync for BookingStatus
impl Unpin for BookingStatus
impl UnwindSafe for BookingStatus
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.