euv-core 0.46.1

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
use super::*;

/// Reference strongly-typed event enum emitted by `ProductCardContract` (Sec 11.9).
#[derive(Clone, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)]
#[serde(tag = "type", rename_all = "snake_case")]
pub enum ProductCardEvent {
    /// Emitted when the user updates the requested quantity inside the dynamic card.
    QuantityChanged {
        /// Newly requested quantity value.
        quantity: u32,
    },
    /// Emitted when the user submits a save request from the dynamic card.
    SaveRequested {
        /// Product identifier being saved.
        product_id: String,
        /// Quantity snapshot requested for save.
        quantity: u32,
    },
}

/// Active implementation source resolved for a strongly-typed dynamic component slot.
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum DynamicBindingSource {
    /// Compiled fallback built directly into the host binary.
    CompiledFallback,
    /// Sandboxed executable Wasm Component module pinned by release generation.
    WasmComponent {
        /// Exact pinned artifact key (`"card@2.0.0"`).
        artifact_key: String,
        /// Verified SHA-256 blob digest.
        sha256: String,
    },
    /// Store-compliant Declarative Data specification pinned by release generation.
    DeclarativeData {
        /// Exact pinned artifact key (`"card@2.0.0"`).
        artifact_key: String,
        /// Verified SHA-256 blob digest.
        sha256: String,
    },
}