Skip to main content

clientapi_pbs/models/
access_update_password_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 AccessUpdatePasswordRequest {
16
17    /// The current password for confirmation, unless logged in as root@pam
18    #[serde(rename = "confirmation-password", skip_serializing_if = "Option::is_none")]
19    pub confirmation_password: Option<String>,
20
21    /// User Password.
22    #[serde(rename = "password")]
23    pub password: String,
24
25    /// User ID
26    #[serde(rename = "userid")]
27    pub userid: String,
28
29
30}
31
32impl AccessUpdatePasswordRequest {
33    pub fn new(password: String, userid: String) -> AccessUpdatePasswordRequest {
34        AccessUpdatePasswordRequest {
35            
36            confirmation_password: None,
37            
38            password,
39            
40            userid,
41            
42        }
43    }
44}
45
46