Skip to main content

clientapi_pve/models/
access_tfa_update_tfa_entry_request.rs

1/*
2 * Proxmox Virtual Environment API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-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 AccessTfaUpdateTfaEntryRequest {
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 the entry should be enabled for login.
22    #[serde(rename = "enable", skip_serializing_if = "Option::is_none")]
23    pub enable: Option<models::PveBoolean>,
24
25    /// The current password of the user performing the change.
26    #[serde(rename = "password", skip_serializing_if = "Option::is_none")]
27    pub password: Option<String>,
28
29
30}
31
32impl AccessTfaUpdateTfaEntryRequest {
33    pub fn new() -> AccessTfaUpdateTfaEntryRequest {
34        AccessTfaUpdateTfaEntryRequest {
35            
36            description: None,
37            
38            enable: None,
39            
40            password: None,
41            
42        }
43    }
44}
45
46