use serde::{Deserialize, Serialize}; use std::default::Default; #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] pub struct Volume { pub icon_high: String, pub icon_low: String, pub icon_muted: String, pub enabled: bool, pub delay: f64, pub card: String, } impl Default for Volume { fn default() -> Self { Volume { icon_high: String::from("🕪"), icon_low: String::from("🕩"), icon_muted: String::from("🔇"), enabled: false, delay: 0.17, card: String::from("ALSA"), } } }