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