From d089c1611b94c6c19d2998a56d9f4d2a983f9833 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 18 Sep 2025 18:45:36 +0800 Subject: client: move inner info to seperate file --- src/client.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/client.rs (limited to 'src/client.rs') 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, + 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>, + pub env: Vec<(String, String)>, +} -- cgit v1.2.3