/*
* Hetzner Cloud API
*
* Copied from the official API documentation for the Public Hetzner Cloud.
*
* The version of the OpenAPI document: 0.28.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// ResetPasswordRequest : Request for POST https://api.hetzner.com/v1/storage_boxes/{id}/subaccounts/{subaccount_id}/actions/reset_subaccount_password
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ResetPasswordRequest {
/// Password of the Storage Box Subaccount. For more details, see the Storage Boxes password policy.
#[serde(rename = "password")]
pub password: String,
}
impl ResetPasswordRequest {
/// Request for POST https://api.hetzner.com/v1/storage_boxes/{id}/subaccounts/{subaccount_id}/actions/reset_subaccount_password
pub fn new(password: String) -> ResetPasswordRequest {
ResetPasswordRequest { password }
}
}