bitwarden_api_api/models/
authenticator_attestation_raw_response.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};
12use serde_with::serde_as;
13
14use crate::models;
15
16#[serde_as]
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
18pub struct AuthenticatorAttestationRawResponse {
19    #[serde_as(as = "Option<serde_with::base64::Base64>")]
20    #[serde(rename = "id", alias = "Id", skip_serializing_if = "Option::is_none")]
21    pub id: Option<Vec<u8>>,
22    #[serde_as(as = "Option<serde_with::base64::Base64>")]
23    #[serde(
24        rename = "rawId",
25        alias = "RawId",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub raw_id: Option<Vec<u8>>,
29    #[serde(
30        rename = "type",
31        alias = "R#type",
32        skip_serializing_if = "Option::is_none"
33    )]
34    pub r#type: Option<models::PublicKeyCredentialType>,
35    #[serde(
36        rename = "response",
37        alias = "Response",
38        skip_serializing_if = "Option::is_none"
39    )]
40    pub response: Option<Box<models::ResponseData>>,
41    #[serde(
42        rename = "extensions",
43        alias = "Extensions",
44        skip_serializing_if = "Option::is_none"
45    )]
46    pub extensions: Option<Box<models::AuthenticationExtensionsClientOutputs>>,
47}
48
49impl AuthenticatorAttestationRawResponse {
50    pub fn new() -> AuthenticatorAttestationRawResponse {
51        AuthenticatorAttestationRawResponse {
52            id: None,
53            raw_id: None,
54            r#type: None,
55            response: None,
56            extensions: None,
57        }
58    }
59}