authentik_rust/models/
patched_totp_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/// PatchedTotpDeviceRequest : Serializer for totp authenticator devices
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct PatchedTotpDeviceRequest {
16    /// The human-readable name of this device.
17    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
18    pub name: Option<String>,
19}
20
21impl PatchedTotpDeviceRequest {
22    /// Serializer for totp authenticator devices
23    pub fn new() -> PatchedTotpDeviceRequest {
24        PatchedTotpDeviceRequest {
25            name: None,
26        }
27    }
28}
29