bitwarden_api_api/models/
master_password_authentication_data_request_model.rs

1/*
2 * Bitwarden Internal API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: latest
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use 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}