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

/// GoogleEndpointDevice : Serializer for Endpoint authenticator devices
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GoogleEndpointDevice {
    #[serde(rename = "pk", skip_serializing_if = "Option::is_none")]
    pub pk: Option<uuid::Uuid>,
    /// The human-readable name of this device.
    #[serde(rename = "name")]
    pub name: String,
}

impl GoogleEndpointDevice {
    /// Serializer for Endpoint authenticator devices
    pub fn new(name: String) -> GoogleEndpointDevice {
        GoogleEndpointDevice { pk: None, name }
    }
}