bitwarden_api_api/models/
two_factor_email_response_model.rs1use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TwoFactorEmailResponseModel {
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 = "email",
31 alias = "Email",
32 skip_serializing_if = "Option::is_none"
33 )]
34 pub email: Option<String>,
35}
36
37impl TwoFactorEmailResponseModel {
38 pub fn new() -> TwoFactorEmailResponseModel {
39 TwoFactorEmailResponseModel {
40 object: None,
41 enabled: None,
42 email: None,
43 }
44 }
45}