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