bitwarden_api_api/models/
two_factor_duo_response_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 TwoFactorDuoResponseModel {
17    #[serde(rename = "object", skip_serializing_if = "Option::is_none")]
18    pub object: Option<String>,
19    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
20    pub enabled: Option<bool>,
21    #[serde(rename = "host", skip_serializing_if = "Option::is_none")]
22    pub host: Option<String>,
23    #[serde(rename = "secretKey", skip_serializing_if = "Option::is_none")]
24    pub secret_key: Option<String>,
25    #[serde(rename = "integrationKey", skip_serializing_if = "Option::is_none")]
26    pub integration_key: Option<String>,
27    #[serde(rename = "clientSecret", skip_serializing_if = "Option::is_none")]
28    pub client_secret: Option<String>,
29    #[serde(rename = "clientId", skip_serializing_if = "Option::is_none")]
30    pub client_id: Option<String>,
31}
32
33impl TwoFactorDuoResponseModel {
34    pub fn new() -> TwoFactorDuoResponseModel {
35        TwoFactorDuoResponseModel {
36            object: None,
37            enabled: None,
38            host: None,
39            secret_key: None,
40            integration_key: None,
41            client_secret: None,
42            client_id: None,
43        }
44    }
45}