Skip to main content

clientapi_pbs/models/
access_users_get_users_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 AccessUsersGetUsersResponseDataInner {
16
17    /// Comment.
18    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
19    pub comment: Option<String>,
20
21    /// E-Mail Address.
22    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
23    pub email: Option<String>,
24
25    /// Enable the account (default). You can set this to '0' to disable the account.
26    #[serde(rename = "enable", skip_serializing_if = "Option::is_none")]
27    pub enable: Option<bool>,
28
29    /// Account expiration date (seconds since epoch). '0' means no expiration date.
30    #[serde(rename = "expire", skip_serializing_if = "Option::is_none")]
31    pub expire: Option<i64>,
32
33    /// First name.
34    #[serde(rename = "firstname", skip_serializing_if = "Option::is_none")]
35    pub firstname: Option<String>,
36
37    /// Last name.
38    #[serde(rename = "lastname", skip_serializing_if = "Option::is_none")]
39    pub lastname: Option<String>,
40
41    /// Contains a timestamp until when a user is locked out of 2nd factors
42    #[serde(rename = "tfa-locked-until", skip_serializing_if = "Option::is_none")]
43    pub tfa_locked_until: Option<i64>,
44
45    /// List of user's API tokens.
46    #[serde(rename = "tokens", skip_serializing_if = "Option::is_none")]
47    pub tokens: Option<Vec<models::AccessUsersGetUsersResponseDataInnerTokensInner>>,
48
49    /// True if the user is currently locked out of TOTP factors
50    #[serde(rename = "totp-locked", skip_serializing_if = "Option::is_none")]
51    pub totp_locked: Option<bool>,
52
53    /// User ID
54    #[serde(rename = "userid")]
55    pub userid: String,
56
57
58}
59
60impl AccessUsersGetUsersResponseDataInner {
61    pub fn new(userid: String) -> AccessUsersGetUsersResponseDataInner {
62        AccessUsersGetUsersResponseDataInner {
63            
64            comment: None,
65            
66            email: None,
67            
68            enable: None,
69            
70            expire: None,
71            
72            firstname: None,
73            
74            lastname: None,
75            
76            tfa_locked_until: None,
77            
78            tokens: None,
79            
80            totp_locked: None,
81            
82            userid,
83            
84        }
85    }
86}
87
88