summaryrefslogtreecommitdiff
path: root/src/client.rs
blob: 845a38a67541f76e0bc88a447e2c5e5a945970c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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,
    )>,
}