Skip to main content

authentik_client/models/
patched_google_endpoint_device_request.rs

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