use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Debug, PartialEq)] pub enum IpcMessage{ SentToWindow(SentToWindowMessage), SentToDeno(String, serde_json::Value), } #[derive(Serialize, Deserialize, Debug, PartialEq)] pub struct SentToWindowMessage { pub id: String, pub event: String, pub content: serde_json::Value, }