aboutsummaryrefslogtreecommitdiff
path: root/src/config/spotify.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/spotify.rs')
-rw-r--r--src/config/spotify.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/config/spotify.rs b/src/config/spotify.rs
new file mode 100644
index 0000000..7cdcd2c
--- /dev/null
+++ b/src/config/spotify.rs
@@ -0,0 +1,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,
+ }
+ }
+}