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", alias = "Kdf")]
18 pub kdf: Box<models::KdfRequestModel>,
19 #[serde(
20 rename = "masterPasswordAuthenticationHash",
21 alias = "MasterPasswordAuthenticationHash"
22 )]
23 pub master_password_authentication_hash: Option<String>,
24 #[serde(rename = "salt", alias = "Salt")]
25 pub salt: Option<String>,
26}
27
28impl MasterPasswordAuthenticationDataRequestModel {
29 pub fn new(
30 kdf: models::KdfRequestModel,
31 master_password_authentication_hash: Option<String>,
32 salt: Option<String>,
33 ) -> MasterPasswordAuthenticationDataRequestModel {
34 MasterPasswordAuthenticationDataRequestModel {
35 kdf: Box::new(kdf),
36 master_password_authentication_hash,
37 salt,
38 }
39 }
40}