pub enum ValidSystemEventStep {
StockReserved {
before: ValidSystemState,
sku: Sku,
quantity: Quantity,
after: ValidSystemState,
},
RefundIssued {
before: ValidSystemState,
amount: Money,
after: ValidSystemState,
},
ReservationReleased {
before: ValidSystemState,
sku: Sku,
quantity: Quantity,
after: ValidSystemState,
},
ReservedShipmentConfirmed {
before: ValidSystemState,
sku: Sku,
quantity: Quantity,
after: ValidSystemState,
},
TaxLiabilityRecorded {
before: ValidSystemState,
amount: Money,
after: ValidSystemState,
},
CrmProjected {
before: ValidSystemState,
after: ValidSystemState,
},
LogisticsProjected {
before: ValidSystemState,
after: ValidSystemState,
},
}Variants§
StockReserved
RefundIssued
ReservationReleased
ReservedShipmentConfirmed
TaxLiabilityRecorded
CrmProjected
LogisticsProjected
Implementations§
Source§impl ValidSystemEventStep
impl ValidSystemEventStep
pub fn stock_reserved( before: ValidSystemState, sku: Sku, quantity: Quantity, ) -> DomainResult<Self>
pub fn refund_issued( before: ValidSystemState, amount: Money, ) -> DomainResult<Self>
pub fn reservation_released( before: ValidSystemState, sku: Sku, quantity: Quantity, ) -> DomainResult<Self>
pub fn reserved_shipment_confirmed( before: ValidSystemState, sku: Sku, quantity: Quantity, ) -> DomainResult<Self>
pub fn tax_liability_recorded( before: ValidSystemState, amount: Money, ) -> DomainResult<Self>
pub fn crm_projected(before: ValidSystemState) -> DomainResult<Self>
pub fn logistics_projected(before: ValidSystemState) -> DomainResult<Self>
Trait Implementations§
Source§impl Clone for ValidSystemEventStep
impl Clone for ValidSystemEventStep
Source§fn clone(&self) -> ValidSystemEventStep
fn clone(&self) -> ValidSystemEventStep
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 ValidSystemEventStep
impl Debug for ValidSystemEventStep
Source§impl PartialEq for ValidSystemEventStep
impl PartialEq for ValidSystemEventStep
Source§fn eq(&self, other: &ValidSystemEventStep) -> bool
fn eq(&self, other: &ValidSystemEventStep) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ValidSystemEventStep
impl StructuralPartialEq for ValidSystemEventStep
Auto Trait Implementations§
impl Freeze for ValidSystemEventStep
impl RefUnwindSafe for ValidSystemEventStep
impl Send for ValidSystemEventStep
impl Sync for ValidSystemEventStep
impl Unpin for ValidSystemEventStep
impl UnsafeUnpin for ValidSystemEventStep
impl UnwindSafe for ValidSystemEventStep
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