summaryrefslogtreecommitdiff
path: root/src/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.rs')
-rw-r--r--src/client.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/client.rs b/src/client.rs
new file mode 100644
index 0000000..2377549
--- /dev/null
+++ b/src/client.rs
@@ -0,0 +1,16 @@
+use std::net::IpAddr;
+use whoami::{DesktopEnv, Language};
+
+pub struct Client<'a> {
+ pub ip: Option<IpAddr>,
+ pub hostname: String,
+ pub device_name: String,
+ pub os: &'a str,
+ pub cpu_arch: &'a str,
+ pub distro: String,
+ pub desktop_env: DesktopEnv,
+ pub username: String,
+ pub realname: String,
+ pub langs: Option<Vec<Language>>,
+ pub env: Vec<(String, String)>,
+}