summaryrefslogtreecommitdiff
path: root/src/client.rs
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-09-18 18:45:36 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-09-18 18:48:42 +0800
commitd089c1611b94c6c19d2998a56d9f4d2a983f9833 (patch)
tree862d3953653a4c878bfd9a43551346ea90ab04c7 /src/client.rs
parent0798c029cee16875fb09ea6a158dbab2dcf13aab (diff)
client: move inner info to seperate file
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)>,
+}