aboutsummaryrefslogtreecommitdiff
path: root/src/config/uptime.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/uptime.rs')
-rw-r--r--src/config/uptime.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/config/uptime.rs b/src/config/uptime.rs
new file mode 100644
index 0000000..9791833
--- /dev/null
+++ b/src/config/uptime.rs
@@ -0,0 +1,19 @@
+use serde::{Deserialize, Serialize};
+use std::default::Default;
+
+#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
+pub struct Uptime {
+ pub icon: String,
+ pub enabled: bool,
+ pub delay: f64,
+}
+
+impl Default for Uptime {
+ fn default() -> Self {
+ Uptime {
+ icon: String::from(""),
+ enabled: false,
+ delay: 60.0,
+ }
+ }
+}