Skip to main content

authentik_client/models/
device_summary.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2026.2.0
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// DeviceSummary : Summary of registered devices
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DeviceSummary {
17    #[serde(rename = "total_count")]
18    pub total_count: i32,
19    #[serde(rename = "unreachable_count")]
20    pub unreachable_count: i32,
21    #[serde(rename = "outdated_agent_count")]
22    pub outdated_agent_count: i32,
23}
24
25impl DeviceSummary {
26    /// Summary of registered devices
27    pub fn new(total_count: i32, unreachable_count: i32, outdated_agent_count: i32) -> DeviceSummary {
28        DeviceSummary {
29            total_count,
30            unreachable_count,
31            outdated_agent_count,
32        }
33    }
34}