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};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AppleIndependentSecureEnclave {
    #[serde(rename = "uuid", skip_serializing_if = "Option::is_none")]
    pub uuid: Option<uuid::Uuid>,
    /// The user that this device belongs to.
    #[serde(rename = "user")]
    pub user: i32,
    #[serde(rename = "apple_secure_enclave_key")]
    pub apple_secure_enclave_key: String,
    #[serde(rename = "apple_enclave_key_id")]
    pub apple_enclave_key_id: String,
    #[serde(rename = "device_type")]
    pub device_type: String,
}

impl AppleIndependentSecureEnclave {
    pub fn new(
        user: i32,
        apple_secure_enclave_key: String,
        apple_enclave_key_id: String,
        device_type: String,
    ) -> AppleIndependentSecureEnclave {
        AppleIndependentSecureEnclave {
            uuid: None,
            user,
            apple_secure_enclave_key,
            apple_enclave_key_id,
            device_type,
        }
    }
}