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(
18        rename = "object",
19        alias = "Object",
20        skip_serializing_if = "Option::is_none"
21    )]
22    pub object: Option<String>,
23    #[serde(
24        rename = "enabled",
25        alias = "Enabled",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub enabled: Option<bool>,
29    #[serde(
30        rename = "host",
31        alias = "Host",
32        skip_serializing_if = "Option::is_none"
33    )]
34    pub host: Option<String>,
35    #[serde(
36        rename = "clientSecret",
37        alias = "ClientSecret",
38        skip_serializing_if = "Option::is_none"
39    )]
40    pub client_secret: Option<String>,
41    #[serde(
42        rename = "clientId",
43        alias = "ClientId",
44        skip_serializing_if = "Option::is_none"
45    )]
46    pub client_id: Option<String>,
47}
48
49impl TwoFactorDuoResponseModel {
50    pub fn new() -> TwoFactorDuoResponseModel {
51        TwoFactorDuoResponseModel {
52            object: None,
53            enabled: None,
54            host: None,
55            client_secret: None,
56            client_id: None,
57        }
58    }
59}