bitwarden_api_api/models/
emergency_access_password_request_model.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EmergencyAccessPasswordRequestModel {
#[serde(rename = "newMasterPasswordHash")]
pub new_master_password_hash: String,
#[serde(rename = "key")]
pub key: String,
}
impl EmergencyAccessPasswordRequestModel {
pub fn new(
new_master_password_hash: String,
key: String,
) -> EmergencyAccessPasswordRequestModel {
EmergencyAccessPasswordRequestModel {
new_master_password_hash,
key,
}
}
}