pub enum ProductActionResult {
CheckStock(u32),
ReserveStock(()),
}Expand description
Results from ProductActions - variants match 1:1 with ProductAction
Variants§
CheckStock(u32)
Result from CheckStock action - returns the current stock level
ReserveStock(())
Result from ReserveStock action - returns unit on success
Trait Implementations§
Source§impl Clone for ProductActionResult
impl Clone for ProductActionResult
Source§fn clone(&self) -> ProductActionResult
fn clone(&self) -> ProductActionResult
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ProductActionResult
impl RefUnwindSafe for ProductActionResult
impl Send for ProductActionResult
impl Sync for ProductActionResult
impl Unpin for ProductActionResult
impl UnwindSafe for ProductActionResult
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