authentik_rust/models/
system_info.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2024.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13/// SystemInfo : Get system information.
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct SystemInfo {
16    /// Get HTTP Request headers
17    #[serde(rename = "http_headers")]
18    pub http_headers: std::collections::HashMap<String, String>,
19    /// Get HTTP host
20    #[serde(rename = "http_host")]
21    pub http_host: String,
22    /// Get HTTP Secure flag
23    #[serde(rename = "http_is_secure")]
24    pub http_is_secure: bool,
25    #[serde(rename = "runtime")]
26    pub runtime: Box<models::SystemInfoRuntime>,
27    /// Currently active brand
28    #[serde(rename = "brand")]
29    pub brand: String,
30    /// Current server time
31    #[serde(rename = "server_time")]
32    pub server_time: String,
33    /// Whether the embedded outpost is disabled
34    #[serde(rename = "embedded_outpost_disabled")]
35    pub embedded_outpost_disabled: bool,
36    /// Get the FQDN configured on the embedded outpost
37    #[serde(rename = "embedded_outpost_host")]
38    pub embedded_outpost_host: String,
39}
40
41impl SystemInfo {
42    /// Get system information.
43    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 {
44        SystemInfo {
45            http_headers,
46            http_host,
47            http_is_secure,
48            runtime: Box::new(runtime),
49            brand,
50            server_time,
51            embedded_outpost_disabled,
52            embedded_outpost_host,
53        }
54    }
55}
56