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

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

impl Default for Spotify {
    fn default() -> Self {
        Spotify {
            icon: String::from(""),
            enabled: false,
            delay: 15.0,
        }
    }
}