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 = "clientSecret", skip_serializing_if = "Option::is_none")]
24    pub client_secret: Option<String>,
25    #[serde(rename = "clientId", skip_serializing_if = "Option::is_none")]
26    pub client_id: Option<String>,
27}
28
29impl TwoFactorDuoResponseModel {
30    pub fn new() -> TwoFactorDuoResponseModel {
31        TwoFactorDuoResponseModel {
32            object: None,
33            enabled: None,
34            host: None,
35            client_secret: None,
36            client_id: None,
37        }
38    }
39}