Mountain/Environment/WebviewProvider/WebviewMessage.rs
1
2//! Webview message envelope: identifier, type tag, payload, and an
3//! optional source identifier. Used for host ↔ webview message
4//! passing routed through the Tauri event bus.
5
6use serde::{Deserialize, Serialize};
7use serde_json::Value;
8
9#[derive(Debug, Clone, Serialize, Deserialize)]
10pub struct Struct {
11 pub MessageIdentifier:String,
12
13 pub MessageType:String,
14
15 pub Payload:Value,
16
17 pub Source:Option<String>,
18}