Skip to main content

clientapi_pbs/models/
access_tfa_get_tfa_response_data_inner.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 AccessTfaGetTfaResponseDataInner {
16
17    /// TFA entries.
18    #[serde(rename = "entries")]
19    pub entries: Vec<models::AccessTfaGetTfaResponseDataInnerEntriesInner>,
20
21    /// If a user's second factor is blocked, this contains the block's expiration time.
22    #[serde(rename = "tfa-locked-until", skip_serializing_if = "Option::is_none")]
23    pub tfa_locked_until: Option<i64>,
24
25    /// The user is locked out of TOTP authentication.
26    #[serde(rename = "totp-locked")]
27    pub totp_locked: bool,
28
29    /// The user this entry belongs to.
30    #[serde(rename = "userid")]
31    pub userid: String,
32
33
34}
35
36impl AccessTfaGetTfaResponseDataInner {
37    pub fn new(entries: Vec<models::AccessTfaGetTfaResponseDataInnerEntriesInner>, totp_locked: bool, userid: String) -> AccessTfaGetTfaResponseDataInner {
38        AccessTfaGetTfaResponseDataInner {
39            
40            entries,
41            
42            tfa_locked_until: None,
43            
44            totp_locked,
45            
46            userid,
47            
48        }
49    }
50}
51
52