authentik-client 2026.2.3

Making authentication simple.
Documentation
/*
 * authentik
 *
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.3
 * Contact: hello@goauthentik.io
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// DeviceSummary : Summary of registered devices
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DeviceSummary {
    #[serde(rename = "total_count")]
    pub total_count: i32,
    #[serde(rename = "unreachable_count")]
    pub unreachable_count: i32,
    #[serde(rename = "outdated_agent_count")]
    pub outdated_agent_count: i32,
}

impl DeviceSummary {
    /// Summary of registered devices
    pub fn new(total_count: i32, unreachable_count: i32, outdated_agent_count: i32) -> DeviceSummary {
        DeviceSummary {
            total_count,
            unreachable_count,
            outdated_agent_count,
        }
    }
}