aboutsummaryrefslogtreecommitdiff
path: root/src/config/volume.rs
blob: c6609128bbbc8fdc2d7f5ab04e9f498df5b796eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use serde::{Deserialize, Serialize};
use std::default::Default;

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Volume {
    pub icon: String,
    pub enabled: bool,
    pub delay: f64,
    pub card: String,
}

impl Default for Volume {
    fn default() -> Self {
        Volume {
            icon: String::from(""),
            enabled: false,
            delay: 0.17,
            card: String::from("ALSA"),
        }
    }
}