use serde::{ Deserialize, Serialize }; use uuid::Uuid; #[derive(Serialize, Deserialize, Debug)] pub struct ClientInfo { pub local_ip: String, pub hostname: String, pub username: String, pub os: String, pub platform: String, pub id: Uuid, } impl ClientInfo { pub fn gather() -> Self { ClientInfo { local_ip: String::from("1.2.3.4"), hostname: String::from("polokonzerva"), username: String::from("plazmoid (lol what a stupid name)"), os: String::from("pinux"), platform: String::from("x86_64"), id: Uuid::new_v4() } } }