pub enum ProductAction {
CheckStock,
ReserveStock(u32),
}Expand description
Custom actions for Product entities.
These actions represent resource-specific operations that can be performed on a product beyond standard CRUD operations.
Variants§
Trait Implementations§
Source§impl Clone for ProductAction
impl Clone for ProductAction
Source§fn clone(&self) -> ProductAction
fn clone(&self) -> ProductAction
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 ProductAction
impl RefUnwindSafe for ProductAction
impl Send for ProductAction
impl Sync for ProductAction
impl Unpin for ProductAction
impl UnwindSafe for ProductAction
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