1 2 3 4 5 6 7 8 9 10 11
use serde::{Deserialize, Serialize}; /// Server configuration #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] #[serde(rename_all = "camelCase")] pub struct Server { pub id: String, pub username: Option<String>, pub password: Option<String>, }