use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SystemInfo {
#[serde(rename = "http_headers")]
pub http_headers: std::collections::HashMap<String, String>,
#[serde(rename = "http_host")]
pub http_host: String,
#[serde(rename = "http_is_secure")]
pub http_is_secure: bool,
#[serde(rename = "runtime")]
pub runtime: Box<models::SystemInfoRuntime>,
#[serde(rename = "brand")]
pub brand: String,
#[serde(rename = "server_time")]
pub server_time: String,
#[serde(rename = "embedded_outpost_disabled")]
pub embedded_outpost_disabled: bool,
#[serde(rename = "embedded_outpost_host")]
pub embedded_outpost_host: String,
}
impl SystemInfo {
pub fn new(http_headers: std::collections::HashMap<String, String>, http_host: String, http_is_secure: bool, runtime: models::SystemInfoRuntime, brand: String, server_time: String, embedded_outpost_disabled: bool, embedded_outpost_host: String) -> SystemInfo {
SystemInfo {
http_headers,
http_host,
http_is_secure,
runtime: Box::new(runtime),
brand,
server_time,
embedded_outpost_disabled,
embedded_outpost_host,
}
}
}