authentik_rust/models/
patched_web_authn_device_request.rs

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