Skip to main content

akeyless_api/models/
change_admin_account_password.rs

1/*
2 * Akeyless API
3 *
4 * The purpose of this application is to provide access to Akeyless API.
5 *
6 * The version of the OpenAPI document: 3.0
7 * Contact: support@akeyless.io
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 ChangeAdminAccountPassword {
16    /// Current password
17    #[serde(rename = "current-password")]
18    pub current_password: String,
19    /// Set output format to JSON
20    #[serde(rename = "json", skip_serializing_if = "Option::is_none")]
21    pub json: Option<bool>,
22    /// New password
23    #[serde(rename = "new-password")]
24    pub new_password: String,
25    /// Authentication token (see `/auth` and `/configure`)
26    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
27    pub token: Option<String>,
28    /// The universal identity token, Required only for universal_identity authentication
29    #[serde(rename = "uid-token", skip_serializing_if = "Option::is_none")]
30    pub uid_token: Option<String>,
31}
32
33impl ChangeAdminAccountPassword {
34    pub fn new(current_password: String, new_password: String) -> ChangeAdminAccountPassword {
35        ChangeAdminAccountPassword {
36            current_password,
37            json: None,
38            new_password,
39            token: None,
40            uid_token: None,
41        }
42    }
43}
44