bitwarden_api_api/models/
update_tde_offboarding_password_request_model.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateTdeOffboardingPasswordRequestModel {
#[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 UpdateTdeOffboardingPasswordRequestModel {
pub fn new(
new_master_password_hash: String,
key: String,
) -> UpdateTdeOffboardingPasswordRequestModel {
UpdateTdeOffboardingPasswordRequestModel {
new_master_password_hash,
key,
master_password_hint: None,
}
}
}