authentik_client/models/endpoint_device.rs
1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.10.2
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// EndpointDevice : Serializer for Endpoint authenticator devices
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EndpointDevice {
17 #[serde(rename = "pk", skip_serializing_if = "Option::is_none")]
18 pub pk: Option<uuid::Uuid>,
19 /// The human-readable name of this device.
20 #[serde(rename = "name")]
21 pub name: String,
22}
23
24impl EndpointDevice {
25 /// Serializer for Endpoint authenticator devices
26 pub fn new(name: String) -> EndpointDevice {
27 EndpointDevice { pk: None, name }
28 }
29}