authentik_rust/models/
system_info_runtime.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/// SystemInfoRuntime : Get versions
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct SystemInfoRuntime {
16    #[serde(rename = "python_version")]
17    pub python_version: String,
18    #[serde(rename = "gunicorn_version")]
19    pub gunicorn_version: String,
20    #[serde(rename = "environment")]
21    pub environment: String,
22    #[serde(rename = "architecture")]
23    pub architecture: String,
24    #[serde(rename = "platform")]
25    pub platform: String,
26    #[serde(rename = "uname")]
27    pub uname: String,
28}
29
30impl SystemInfoRuntime {
31    /// Get versions
32    pub fn new(python_version: String, gunicorn_version: String, environment: String, architecture: String, platform: String, uname: String) -> SystemInfoRuntime {
33        SystemInfoRuntime {
34            python_version,
35            gunicorn_version,
36            environment,
37            architecture,
38            platform,
39            uname,
40        }
41    }
42}
43