pub enum CanOrderTransition {
NewPaid,
NewCancelled,
NewBackordered,
PaidPacked,
PaidRefunded,
PackedShipped,
ShippedDelivered,
DeliveredRefunded,
BackorderedPaid,
BackorderedCancelled,
}Variants§
NewPaid
NewCancelled
NewBackordered
PaidPacked
PaidRefunded
PackedShipped
ShippedDelivered
DeliveredRefunded
BackorderedPaid
BackorderedCancelled
Implementations§
Source§impl CanOrderTransition
impl CanOrderTransition
pub const fn source(self) -> OrderStatus
pub const fn target(self) -> OrderStatus
pub const fn from_statuses( source: OrderStatus, target: OrderStatus, ) -> Option<Self>
Trait Implementations§
Source§impl Clone for CanOrderTransition
impl Clone for CanOrderTransition
Source§fn clone(&self) -> CanOrderTransition
fn clone(&self) -> CanOrderTransition
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 moreSource§impl Debug for CanOrderTransition
impl Debug for CanOrderTransition
Source§impl PartialEq for CanOrderTransition
impl PartialEq for CanOrderTransition
Source§fn eq(&self, other: &CanOrderTransition) -> bool
fn eq(&self, other: &CanOrderTransition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CanOrderTransition
impl Eq for CanOrderTransition
impl StructuralPartialEq for CanOrderTransition
Auto Trait Implementations§
impl Freeze for CanOrderTransition
impl RefUnwindSafe for CanOrderTransition
impl Send for CanOrderTransition
impl Sync for CanOrderTransition
impl Unpin for CanOrderTransition
impl UnsafeUnpin for CanOrderTransition
impl UnwindSafe for CanOrderTransition
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