Skip to main content

bitwarden_api_api/models/
two_factor_web_authn_delete_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/// TwoFactorWebAuthnDeleteResponseModel : Response model carrying the updated WebAuthn provider
16/// state after a per-credential removal. The credential delete shrinks the credential list rather
17/// than destroying the provider, so the caller still gets the parent state back; provider-level
18/// deletes return 204 No Content.
19#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
20pub struct TwoFactorWebAuthnDeleteResponseModel {
21    #[serde(
22        rename = "object",
23        alias = "Object",
24        skip_serializing_if = "Option::is_none"
25    )]
26    pub object: Option<String>,
27    #[serde(
28        rename = "webAuthn",
29        alias = "WebAuthn",
30        skip_serializing_if = "Option::is_none"
31    )]
32    pub web_authn: Option<Box<models::TwoFactorWebAuthnDetails>>,
33}
34
35impl TwoFactorWebAuthnDeleteResponseModel {
36    /// Response model carrying the updated WebAuthn provider state after a per-credential removal.
37    /// The credential delete shrinks the credential list rather than destroying the provider, so
38    /// the caller still gets the parent state back; provider-level deletes return 204 No Content.
39    pub fn new() -> TwoFactorWebAuthnDeleteResponseModel {
40        TwoFactorWebAuthnDeleteResponseModel {
41            object: None,
42            web_authn: None,
43        }
44    }
45}