use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, Deserialize, Serialize)] pub struct Server { pub channels: Channel, pub welcome_text: Option, pub username: String, pub host: String, } #[derive(Clone, Debug, Deserialize, Serialize)] pub struct Channel { pub description: Option, pub links: Vec>, //to represent several walks through the tree to find channels its linked to pub max_users: u32, pub name: String, pub children: Vec, pub users: Vec, } #[derive(Clone, Debug, Deserialize, Serialize)] pub struct User { pub comment: Option, pub hash: Option, pub name: String, pub priority_speaker: bool, pub recording: bool, pub suppress: bool, // by me pub self_mute: bool, // by self pub self_deaf: bool, // by self pub mute: bool, // by admin pub deaf: bool, // by admin }