1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
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, )>, }