#[non_exhaustive]pub enum TripStatus {
Draft,
AwaitingRebookingConfirmation,
Rebooking,
Ticketed,
Refused,
Notified,
NotNotified,
Withdrawn,
}Expand description
The lifecycle status stored on the case.
The status is persisted; the TripPhase is projected from it together
with the open obligations, so the two never drift.
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.
Draft
Being filled in.
AwaitingRebookingConfirmation
A rebooking is quoted, waiting for the user to confirm it.
Rebooking
Sent to the airline; no local edit may happen.
Ticketed
The airline confirmed and issued the new ticket.
Refused
The airline refused the rebooking, and another can be asked for.
Notified
The traveler was sent the new ticket.
NotNotified
The traveler could not be reached; the ticket stands as issued.
Withdrawn
Withdrawn before a rebooking left the system.
Implementations§
Source§impl TripStatus
impl TripStatus
Trait Implementations§
Source§impl Clone for TripStatus
impl Clone for TripStatus
impl Copy for TripStatus
Source§impl Debug for TripStatus
impl Debug for TripStatus
Source§impl Default for TripStatus
impl Default for TripStatus
Source§impl<'de> Deserialize<'de> for TripStatus
impl<'de> Deserialize<'de> for TripStatus
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 TripStatus
Source§impl Hash for TripStatus
impl Hash for TripStatus
Source§impl PartialEq for TripStatus
impl PartialEq for TripStatus
Source§impl Serialize for TripStatus
impl Serialize for TripStatus
impl StructuralPartialEq for TripStatus
Auto Trait Implementations§
impl Freeze for TripStatus
impl RefUnwindSafe for TripStatus
impl Send for TripStatus
impl Sync for TripStatus
impl Unpin for TripStatus
impl UnsafeUnpin for TripStatus
impl UnwindSafe for TripStatus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<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.