pub enum Stock {
Received {
units: u64,
unit_cost: u64,
},
Issued {
units: u64,
},
}Expand description
A stock movement at one site: the reference cases’ domain event.
Encoded as a (units, unit_cost) pair under the fixture’s codec, which is
why this crate needs no serde of its own. An issue carries no cost; what
it cost is what the fold says it cost.
Variants§
Trait Implementations§
impl Copy for Stock
Source§impl DomainEvent for Stock
impl DomainEvent for Stock
Source§const EVENT_TYPES: &'static [EventType]
const EVENT_TYPES: &'static [EventType]
Every event type a value of this type can carry. Read more
Source§fn event_type(&self) -> EventType
fn event_type(&self) -> EventType
The event type this value carries. Read more
The tags this event carries. Read more
impl Eq for Stock
impl StructuralPartialEq for Stock
Auto Trait Implementations§
impl Freeze for Stock
impl RefUnwindSafe for Stock
impl Send for Stock
impl Sync for Stock
impl Unpin for Stock
impl UnsafeUnpin for Stock
impl UnwindSafe for Stock
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