bitwarden_api_api/models/
master_password_authentication_data_request_model.rs1use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct MasterPasswordAuthenticationDataRequestModel {
17 #[serde(rename = "kdf")]
18 pub kdf: Box<models::KdfRequestModel>,
19 #[serde(rename = "masterPasswordAuthenticationHash")]
20 pub master_password_authentication_hash: Option<String>,
21 #[serde(rename = "salt")]
22 pub salt: Option<String>,
23}
24
25impl MasterPasswordAuthenticationDataRequestModel {
26 pub fn new(
27 kdf: models::KdfRequestModel,
28 master_password_authentication_hash: Option<String>,
29 salt: Option<String>,
30 ) -> MasterPasswordAuthenticationDataRequestModel {
31 MasterPasswordAuthenticationDataRequestModel {
32 kdf: Box::new(kdf),
33 master_password_authentication_hash,
34 salt,
35 }
36 }
37}