aboutsummaryrefslogtreecommitdiff
path: root/src/types.rs
diff options
context:
space:
mode:
authorMustafa Salih <37256744+MustafaSalih1993@users.noreply.github.com>2021-02-15 04:31:29 +0300
committerGitHub <noreply@github.com>2021-02-15 04:31:29 +0300
commitf16724e986b17dd739b086a917672bb36b1d9b16 (patch)
tree508ce31128c5e2c0ea21a50acdf1901c7e0fd428 /src/types.rs
parentc4cd23f471fe8d6fdac7ddca436b477c16031373 (diff)
Dev (#45)
* added bitcoins prices * removed unwanted formating
Diffstat (limited to 'src/types.rs')
-rw-r--r--src/types.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/types.rs b/src/types.rs
index 5def739..a7fd975 100644
--- a/src/types.rs
+++ b/src/types.rs
@@ -15,6 +15,7 @@ pub enum ThreadsData {
LoadAvg(String),
NetSpeed(String),
PubIp(String),
+ BitCoins(String),
}
#[derive(Clone)]
@@ -32,6 +33,7 @@ pub struct Config {
pub spotify: Spotify,
pub loadavg: LoadAvg,
pub pub_ip: PubIp,
+ pub bitcoins: BitCoins,
}
#[derive(Clone)]
@@ -131,6 +133,14 @@ pub struct PubIp {
pub delay: f64,
}
+#[derive(Clone)]
+pub struct BitCoins {
+ pub icon: String,
+ pub symbol: String,
+ pub enabled: bool,
+ pub delay: f64,
+}
+
pub struct Blocks {
pub disp: Display<name::NameConnection>,
pub root: Window,