Skip to main content

bitwarden_api_api/models/
emergency_access_password_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 EmergencyAccessPasswordRequestModel {
17    #[serde(
18        rename = "newMasterPasswordHash",
19        alias = "NewMasterPasswordHash",
20        skip_serializing_if = "Option::is_none"
21    )]
22    pub new_master_password_hash: Option<String>,
23    #[serde(rename = "key", alias = "Key", skip_serializing_if = "Option::is_none")]
24    pub key: Option<String>,
25    #[serde(
26        rename = "unlockData",
27        alias = "UnlockData",
28        skip_serializing_if = "Option::is_none"
29    )]
30    pub unlock_data: Option<Box<models::MasterPasswordUnlockDataRequestModel>>,
31    #[serde(
32        rename = "authenticationData",
33        alias = "AuthenticationData",
34        skip_serializing_if = "Option::is_none"
35    )]
36    pub authentication_data: Option<Box<models::MasterPasswordAuthenticationDataRequestModel>>,
37}
38
39impl EmergencyAccessPasswordRequestModel {
40    pub fn new() -> EmergencyAccessPasswordRequestModel {
41        EmergencyAccessPasswordRequestModel {
42            new_master_password_hash: None,
43            key: None,
44            unlock_data: None,
45            authentication_data: None,
46        }
47    }
48}