blob: c07b9fae87c1aaa98845089c7bdac11811fc29ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
use std::net::IpAddr;
use whoami::{DesktopEnv, Language};
#[derive(PartialEq)]
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)>,
}
|