pub enum CartOp {
Show,
Add {
merchant_id: String,
item_id: String,
quantity: u32,
note: Option<String>,
},
Remove {
item_id: String,
},
Clear,
}Expand description
A cart change.
Variants§
Show
The cart as it is.
Add
Add quantity of an item (the cart holds one merchant at a time).
Fields
Remove
Drop an item’s line.
Clear
Empty it.
Trait Implementations§
impl Eq for CartOp
impl StructuralPartialEq for CartOp
Auto Trait Implementations§
impl Forget for CartOp
impl Freeze for CartOp
impl RefUnwindSafe for CartOp
impl Send for CartOp
impl Sync for CartOp
impl Unpin for CartOp
impl UnsafeUnpin for CartOp
impl UnwindSafe for CartOp
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