bitwarden_api_api/models/
update_two_factor_yubico_otp_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 UpdateTwoFactorYubicoOtpRequestModel {
17    #[serde(rename = "masterPasswordHash", skip_serializing_if = "Option::is_none")]
18    pub master_password_hash: Option<String>,
19    #[serde(rename = "otp", skip_serializing_if = "Option::is_none")]
20    pub otp: Option<String>,
21    #[serde(
22        rename = "authRequestAccessCode",
23        skip_serializing_if = "Option::is_none"
24    )]
25    pub auth_request_access_code: Option<String>,
26    #[serde(rename = "secret", skip_serializing_if = "Option::is_none")]
27    pub secret: Option<String>,
28    #[serde(rename = "key1", skip_serializing_if = "Option::is_none")]
29    pub key1: Option<String>,
30    #[serde(rename = "key2", skip_serializing_if = "Option::is_none")]
31    pub key2: Option<String>,
32    #[serde(rename = "key3", skip_serializing_if = "Option::is_none")]
33    pub key3: Option<String>,
34    #[serde(rename = "key4", skip_serializing_if = "Option::is_none")]
35    pub key4: Option<String>,
36    #[serde(rename = "key5", skip_serializing_if = "Option::is_none")]
37    pub key5: Option<String>,
38    #[serde(rename = "nfc")]
39    pub nfc: bool,
40}
41
42impl UpdateTwoFactorYubicoOtpRequestModel {
43    pub fn new(nfc: bool) -> UpdateTwoFactorYubicoOtpRequestModel {
44        UpdateTwoFactorYubicoOtpRequestModel {
45            master_password_hash: None,
46            otp: None,
47            auth_request_access_code: None,
48            secret: None,
49            key1: None,
50            key2: None,
51            key3: None,
52            key4: None,
53            key5: None,
54            nfc,
55        }
56    }
57}