#[non_exhaustive]pub enum TripEvent {
Show 13 variants
Opened,
NameSet {
value: String,
},
TravelDateSet {
value: NaiveDate,
},
ExtraAdded {
extra_id: Uuid,
description: String,
quantity: u32,
unit_price_cents: i64,
},
PayerAssigned {
extra_id: Uuid,
payer: Payer,
},
ExtraChanged {
extra_id: Uuid,
description: Option<String>,
quantity: Option<u32>,
unit_price_cents: Option<i64>,
},
TravelerChanged {
previous_traveler_id: Option<Uuid>,
traveler_id: Uuid,
display_name: String,
},
LegProtected {
leg: u32,
},
OfferQuoted {
leg: u32,
flight: String,
departs: String,
fare_difference_cents: i64,
},
RebookingRequested {
leg: u32,
},
RebookingSent,
Withdrawn,
AirlineOutcomeRecorded {
status: ExternalStatus,
ticket_number: Option<String>,
reason_code: Option<String>,
},
}Expand description
One committed trip event: the claim ledger of the sample.
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.
Opened
The case came into existence.
NameSet
The trip was named.
TravelDateSet
The travel date changed.
ExtraAdded
An extra was added.
Fields
PayerAssigned
An extra was given its payer.
ExtraChanged
An extra was changed; each field given is its new value.
Fields
TravelerChanged
Another traveler was put on the case.
Fields
LegProtected
A leg is kept as it is.
OfferQuoted
The airline quoted a rebooking.
Fields
RebookingRequested
The rebooking confirmation was requested.
RebookingSent
The rebooking was sent to the airline.
Withdrawn
The case was withdrawn.
AirlineOutcomeRecorded
The airline reported where the rebooking stands.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TripEvent
impl<'de> Deserialize<'de> for TripEvent
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 TripEvent
impl StructuralPartialEq for TripEvent
Auto Trait Implementations§
impl Freeze for TripEvent
impl RefUnwindSafe for TripEvent
impl Send for TripEvent
impl Sync for TripEvent
impl Unpin for TripEvent
impl UnsafeUnpin for TripEvent
impl UnwindSafe for TripEvent
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.