use serde::{Serialize, Deserialize}; use cubik::player::PlayerControlMessage; #[derive(Serialize, Deserialize)] pub enum AppMessage { Chat { text: String, sender: Option }, PlayerChange { player_id: u8, msg: PlayerControlMessage } }