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/types.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/types.rs')
-rw-r--r-- | src/types.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/types.rs b/src/types.rs index 9fd834e..3cadf01 100644 --- a/src/types.rs +++ b/src/types.rs @@ -1,4 +1,3 @@ - #[derive(Debug, Clone)] pub enum ThreadsData { Mpd(String), @@ -14,6 +13,7 @@ pub enum ThreadsData { LoadAvg(String), NetSpeed(String), PubIp(String), + LocalIp(String), BitCoins(String), } @@ -32,6 +32,7 @@ pub struct Config { pub spotify: Spotify, pub loadavg: LoadAvg, pub pub_ip: PubIp, + pub local_ip: LocalIp, pub bitcoins: BitCoins, } @@ -132,10 +133,16 @@ pub struct PubIp { } #[derive(Clone)] +pub struct LocalIp { + pub icon: String, + pub enabled: bool, + pub delay: f64, +} + +#[derive(Clone)] pub struct BitCoins { pub icon: String, pub symbol: String, pub enabled: bool, pub delay: f64, } - |