bitwarden_api_api/models/
two_factor_web_authn_update_response_model.rs1use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
18pub struct TwoFactorWebAuthnUpdateResponseModel {
19 #[serde(
20 rename = "object",
21 alias = "Object",
22 skip_serializing_if = "Option::is_none"
23 )]
24 pub object: Option<String>,
25 #[serde(
26 rename = "webAuthn",
27 alias = "WebAuthn",
28 skip_serializing_if = "Option::is_none"
29 )]
30 pub web_authn: Option<Box<models::TwoFactorWebAuthnDetails>>,
31}
32
33impl TwoFactorWebAuthnUpdateResponseModel {
34 pub fn new() -> TwoFactorWebAuthnUpdateResponseModel {
36 TwoFactorWebAuthnUpdateResponseModel {
37 object: None,
38 web_authn: None,
39 }
40 }
41}