/*
 * Artifact Keeper API
 *
 * Enterprise artifact registry supporting 45+ package formats.
 *
 * The version of the OpenAPI document: 1.0.0-rc.3
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ChangePasswordRequest {
    #[serde(rename = "current_password", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub current_password: Option<Option<String>>,
    #[serde(rename = "new_password")]
    pub new_password: String,
}

impl ChangePasswordRequest {
    pub fn new(new_password: String) -> ChangePasswordRequest {
        ChangePasswordRequest {
            current_password: None,
            new_password,
        }
    }
}

