authentik-client 2026.2.2-rc2

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

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DeviceUser {
    #[serde(rename = "id")]
    pub id: String,
    #[serde(rename = "username", skip_serializing_if = "Option::is_none")]
    pub username: Option<String>,
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(rename = "home", skip_serializing_if = "Option::is_none")]
    pub home: Option<String>,
}

impl DeviceUser {
    pub fn new(id: String) -> DeviceUser {
        DeviceUser {
            id,
            username: None,
            name: None,
            home: None,
        }
    }
}