Skip to main content

clientapi_pbs/models/
access_tfa_update_tfa_request.rs

1/*
2 * Proxmox Backup Server API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/docs/api-viewer/ for the upstream documentation.
5 *
6 * The version of the OpenAPI document: 9.x
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AccessTfaUpdateTfaRequest {
16
17    /// A description to distinguish multiple entries from one another
18    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
19    pub description: Option<String>,
20
21    /// Whether this entry should currently be enabled or disabled
22    #[serde(rename = "enable", skip_serializing_if = "Option::is_none")]
23    pub enable: Option<bool>,
24
25    /// Password.
26    #[serde(rename = "password", skip_serializing_if = "Option::is_none")]
27    pub password: Option<String>,
28
29
30}
31
32impl AccessTfaUpdateTfaRequest {
33    pub fn new() -> AccessTfaUpdateTfaRequest {
34        AccessTfaUpdateTfaRequest {
35            
36            description: None,
37            
38            enable: None,
39            
40            password: None,
41            
42        }
43    }
44}
45
46