diff options
Diffstat (limited to 'src/config/local_ip.rs')
-rw-r--r-- | src/config/local_ip.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/config/local_ip.rs b/src/config/local_ip.rs new file mode 100644 index 0000000..8b3b63a --- /dev/null +++ b/src/config/local_ip.rs @@ -0,0 +1,21 @@ +use serde::{Deserialize, Serialize}; +use std::default::Default; + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +pub struct LocalIp { + pub icon: String, + pub enabled: bool, + pub delay: f64, + pub interface: String, +} + +impl Default for LocalIp { + fn default() -> Self { + LocalIp { + icon: String::from(""), + enabled: false, + delay: 120.0, + interface: String::from("wlan0"), + } + } +} |