Plugin schema and WsMessage json

This commit is contained in:
2025-12-13 23:22:53 +01:00
parent 62c9328143
commit 83e4a9f758
2 changed files with 43 additions and 0 deletions
+1
View File
@@ -129,6 +129,7 @@ pub mod message {
/// WebSocket wrapper
#[derive(Debug, Clone, Serialize)]
#[serde(tag = "type", content = "params", rename_all = "snake_case")]
pub enum WsMessage<T: Serialize + for<'de> Deserialize<'de>> {
Message(T),
Binary(Vec<u8>),