authentik-client 2026.5.0-rc2

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

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

/// AuthenticatedSessionUserAgentDevice : User agent device
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AuthenticatedSessionUserAgentDevice {
    #[serde(rename = "brand", deserialize_with = "Option::deserialize")]
    pub brand: Option<String>,
    #[serde(rename = "family")]
    pub family: String,
    #[serde(rename = "model", deserialize_with = "Option::deserialize")]
    pub model: Option<String>,
}

impl AuthenticatedSessionUserAgentDevice {
    /// User agent device
    pub fn new(brand: Option<String>, family: String, model: Option<String>) -> AuthenticatedSessionUserAgentDevice {
        AuthenticatedSessionUserAgentDevice { brand, family, model }
    }
}