bitwarden_api_api/models/
response_data.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 ResponseData {
19    #[serde_as(as = "Option<serde_with::base64::Base64>")]
20    #[serde(
21        rename = "attestationObject",
22        alias = "AttestationObject",
23        skip_serializing_if = "Option::is_none"
24    )]
25    pub attestation_object: Option<Vec<u8>>,
26    #[serde_as(as = "Option<serde_with::base64::Base64>")]
27    #[serde(
28        rename = "clientDataJSON",
29        alias = "ClientDataJson",
30        skip_serializing_if = "Option::is_none"
31    )]
32    pub client_data_json: Option<Vec<u8>>,
33}
34
35impl ResponseData {
36    pub fn new() -> ResponseData {
37        ResponseData {
38            attestation_object: None,
39            client_data_json: None,
40        }
41    }
42}