/*
* opensearch-client
*
* Rust Client for OpenSearch
*
* The version of the OpenAPI document: 3.1.0
* Contact: alberto.paro@gmail.com
* Generated by Paro OpenAPI Generator
*/
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ChangePasswordRequestContent { /// The new password to set.
#[serde(rename = "password")]
pub password: String, /// The current password.
#[serde(rename = "current_password")]
pub current_password: String,
}
impl ChangePasswordRequestContent {
pub fn new(password: String, current_password: String) -> ChangePasswordRequestContent {
ChangePasswordRequestContent {
password,
current_password,
}
}
}