Skip to main content

authentik_client/models/
authenticated_session_user_agent_device.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.8.6
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// AuthenticatedSessionUserAgentDevice : User agent device
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AuthenticatedSessionUserAgentDevice {
17    #[serde(rename = "brand")]
18    pub brand: String,
19    #[serde(rename = "family")]
20    pub family: String,
21    #[serde(rename = "model")]
22    pub model: String,
23}
24
25impl AuthenticatedSessionUserAgentDevice {
26    /// User agent device
27    pub fn new(brand: String, family: String, model: String) -> AuthenticatedSessionUserAgentDevice {
28        AuthenticatedSessionUserAgentDevice { brand, family, model }
29    }
30}