artifact-keeper-client 1.2.1

Rust client for the Artifact Keeper REST API
Documentation
/*
 * Artifact Keeper API
 *
 * Enterprise artifact registry supporting 45+ package formats.
 *
 * The version of the OpenAPI document: 1.2.1
 * 
 * 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,
        }
    }
}