Skip to main content

authentik_client/models/
system_info.rs

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