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(rename = "attestationObject", skip_serializing_if = "Option::is_none")]
21    pub attestation_object: Option<Vec<u8>>,
22    #[serde_as(as = "Option<serde_with::base64::Base64>")]
23    #[serde(rename = "clientDataJSON", skip_serializing_if = "Option::is_none")]
24    pub client_data_json: Option<Vec<u8>>,
25}
26
27impl ResponseData {
28    pub fn new() -> ResponseData {
29        ResponseData {
30            attestation_object: None,
31            client_data_json: None,
32        }
33    }
34}