Skip to main content

plexus_substrate/activations/echo/
types.rs

1//! Echo activation event types
2//!
3//! This demonstrates plain domain types for the caller-wraps streaming pattern.
4//! No trait implementations needed - just standard derives.
5
6use schemars::JsonSchema;
7use serde::{Deserialize, Serialize};
8
9/// Events from echo operations
10#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
11#[serde(tag = "type", rename_all = "snake_case")]
12pub enum EchoEvent {
13    /// Echo response
14    Echo {
15        /// The echoed message
16        message: String,
17        /// Number of times repeated
18        count: u32,
19    },
20}