bitwarden_api_api/models/
update_temp_password_request_model.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateTempPasswordRequestModel {
#[serde(rename = "newMasterPasswordHash")]
pub new_master_password_hash: String,
#[serde(rename = "key")]
pub key: String,
#[serde(rename = "masterPasswordHint", skip_serializing_if = "Option::is_none")]
pub master_password_hint: Option<String>,
}
impl UpdateTempPasswordRequestModel {
pub fn new(new_master_password_hash: String, key: String) -> UpdateTempPasswordRequestModel {
UpdateTempPasswordRequestModel {
new_master_password_hash,
key,
master_password_hint: None,
}
}
}