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