/*
* authentik
*
* Making authentication simple.
*
* The version of the OpenAPI document: 2024.12.2
* Contact: hello@goauthentik.io
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// EndpointDeviceRequest : Serializer for Endpoint authenticator devices
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EndpointDeviceRequest {
#[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 EndpointDeviceRequest {
/// Serializer for Endpoint authenticator devices
pub fn new(name: String) -> EndpointDeviceRequest {
EndpointDeviceRequest { pk: None, name }
}
}