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§fn clone(&self) -> ProductCardEvent
fn clone(&self) -> ProductCardEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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<ProductCardEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProductCardEvent, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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