http-envinfo 0.1.0

This package provides JSON API of health for microservice. It's using rocket framework.
// Librairies
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug)]
pub struct ServerInfo {
    pub hostname: String,
    pub device: String,
    pub username: String,
    pub realname: String,
    pub platform: String,
    pub cpu_arch: String,
    pub distro: String,
    pub net_interface: Vec<NetInterface>,
    pub environment: Vec<SysEnv>,
}

#[derive(Serialize, Deserialize, Debug)]
pub struct NetInterface {
    pub name: String,
    pub ip: String,
    pub ip_v4: bool,
    pub ip_v6: bool,
    pub mac: String,
}

#[derive(Serialize, Deserialize, Debug)]
pub struct SysEnv {
    pub name: String,
    pub value: String,
}