pub enum ProductCardEvent {
QuantityChanged {
quantity: u32,
},
SaveRequested {
product_id: String,
quantity: u32,
},
}Expand description
Reference strongly-typed event enum emitted by ProductCardContract (Sec 11.9).
Variants§
QuantityChanged
Emitted when the user updates the requested quantity inside the dynamic card.
SaveRequested
Emitted when the user submits a save request from the dynamic card.
Trait Implementations§
Source§impl Clone for ProductCardEvent
impl Clone for ProductCardEvent
Source§impl Debug for ProductCardEvent
impl Debug for ProductCardEvent
Source§impl<'de> Deserialize<'de> for ProductCardEvent
impl<'de> Deserialize<'de> for ProductCardEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProductCardEvent
Source§impl Hash for ProductCardEvent
impl Hash for ProductCardEvent
Source§impl PartialEq for ProductCardEvent
impl PartialEq for ProductCardEvent
Source§impl Serialize for ProductCardEvent
impl Serialize for ProductCardEvent
impl StructuralPartialEq for ProductCardEvent
Auto Trait Implementations§
impl Forget for ProductCardEvent
impl Freeze for ProductCardEvent
impl Move for ProductCardEvent
impl RefUnwindSafe for ProductCardEvent
impl Send for ProductCardEventwhere
RawVecInner: Send,
impl Sync for ProductCardEventwhere
RawVecInner: Sync,
impl Unpin for ProductCardEvent
impl UnsafeUnpin for ProductCardEvent
impl UnwindSafe for ProductCardEventwhere
RawVecInner: UnwindSafe,
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