pub enum OrderStatus {
Created,
Cancelled,
AwaitingPayment,
Complete,
}
Variants§
Created
Order has been created but the ticket it is trying to order has not been reserved
Cancelled
The ticket the order is trying to reserve has already been reserved, or when the user has cancelled the order
AwaitingPayment
The order has successfully reserved the ticket
Complete
The order has reserved the ticket and the user has provided payment successfully
Trait Implementations§
Source§impl Clone for OrderStatus
impl Clone for OrderStatus
Source§fn clone(&self) -> OrderStatus
fn clone(&self) -> OrderStatus
Returns a copy 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 OrderStatus
impl Debug for OrderStatus
Source§impl Display for OrderStatus
impl Display for OrderStatus
Source§impl From<OrderStatus> for &str
impl From<OrderStatus> for &str
Source§fn from(status: OrderStatus) -> Self
fn from(status: OrderStatus) -> Self
Converts to this type from the input type.
Source§impl FromStr for OrderStatus
impl FromStr for OrderStatus
Auto Trait Implementations§
impl Freeze for OrderStatus
impl RefUnwindSafe for OrderStatus
impl Send for OrderStatus
impl Sync for OrderStatus
impl Unpin for OrderStatus
impl UnwindSafe for OrderStatus
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