1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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"),
}
}
}
|