pub struct ProductCardContract;Expand description
Zero-sized contract marker type binding ProductCardProps and ProductCardEvent at compile time.
Trait Implementations§
Source§impl Clone for ProductCardContract
impl Clone for ProductCardContract
impl Copy for ProductCardContract
Source§impl Debug for ProductCardContract
impl Debug for ProductCardContract
Source§impl Default for ProductCardContract
impl Default for ProductCardContract
Source§impl DynamicComponentContract for ProductCardContract
Reference strongly-typed dynamic component contract implementation for ProductCardContract.
impl DynamicComponentContract for ProductCardContract
Reference strongly-typed dynamic component contract implementation for ProductCardContract.
Source§fn wit_definition() -> &'static str
fn wit_definition() -> &'static str
Returns the WIT interface source for euv:product-card/v1.
§Returns
&'static str- WIT interface text.
Source§fn fallback_spec(props: &Self::Props) -> DynamicNodeSpec
fn fallback_spec(props: &Self::Props) -> DynamicNodeSpec
Source§fn decode_action(
action: &DynamicActionEvent,
props: &Self::Props,
) -> Option<Self::Event>
fn decode_action( action: &DynamicActionEvent, props: &Self::Props, ) -> Option<Self::Event>
Source§const INTERFACE_ID: &'static str = PRODUCT_CARD_INTERFACE_ID
const INTERFACE_ID: &'static str = PRODUCT_CARD_INTERFACE_ID
Canonical interface identifier verified against pinned release artifacts before activation.
Source§const INTERFACE_VERSION: u32 = PRODUCT_CARD_INTERFACE_VERSION
const INTERFACE_VERSION: u32 = PRODUCT_CARD_INTERFACE_VERSION
Interface contract version independent of implementation and state schema versions.
Source§const STATE_SCHEMA_VERSION: u32 = PRODUCT_CARD_STATE_SCHEMA_VERSION
const STATE_SCHEMA_VERSION: u32 = PRODUCT_CARD_STATE_SCHEMA_VERSION
Expected component local state schema version.
Source§type Props = ProductCardProps
type Props = ProductCardProps
Strongly-typed input properties validated by the Rust compiler at every call site.
Source§type Event = ProductCardEvent
type Event = ProductCardEvent
Strongly-typed output events validated by the Rust compiler on every handler.
impl Eq for ProductCardContract
Source§impl Hash for ProductCardContract
impl Hash for ProductCardContract
Source§impl PartialEq for ProductCardContract
impl PartialEq for ProductCardContract
impl StructuralPartialEq for ProductCardContract
Auto Trait Implementations§
impl Forget for ProductCardContract
impl Freeze for ProductCardContract
impl Move for ProductCardContract
impl RefUnwindSafe for ProductCardContract
impl Send for ProductCardContract
impl Sync for ProductCardContract
impl Unpin for ProductCardContract
impl UnsafeUnpin for ProductCardContract
impl UnwindSafe for ProductCardContract
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