Skip to main content

clientapi_pve/models/
access_change_password_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 AccessChangePasswordRequest {
16
17    /// The current password of the user performing the change.
18    #[serde(rename = "confirmation-password", skip_serializing_if = "Option::is_none")]
19    pub confirmation_password: Option<String>,
20
21    /// The new password.
22    #[serde(rename = "password")]
23    pub password: String,
24
25    /// Full User ID, in the `name@realm` format.
26    #[serde(rename = "userid")]
27    pub userid: String,
28
29
30}
31
32impl AccessChangePasswordRequest {
33    pub fn new(password: String, userid: String) -> AccessChangePasswordRequest {
34        AccessChangePasswordRequest {
35            
36            confirmation_password: None,
37            
38            password,
39            
40            userid,
41            
42        }
43    }
44}
45
46