diff options
author | Mustafa Salih <37256744+MustafaSalih1993@users.noreply.github.com> | 2021-06-04 22:14:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-04 22:14:02 +0300 |
commit | a66c94a1f836b56897a3b5151f93aaa327efc6bd (patch) | |
tree | 2aba52ed10c1288f6d837c18a2e3d58101a912f6 /src/config/local_ip.rs | |
parent | edea2fcb3db9243c6dedead90cd9dfd715c89a90 (diff) |
Added local ip (#61)
* added new block/local ip
* added local ip block
* added localip in config file
* edited localip default to false
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"), + } + } +} |