Skip to main content

bitwarden_api_api/models/
authentication_extensions_large_blob_outputs.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 AuthenticationExtensionsLargeBlobOutputs {
19    #[serde(
20        rename = "supported",
21        alias = "Supported",
22        skip_serializing_if = "Option::is_none"
23    )]
24    pub supported: Option<bool>,
25    #[serde_as(
26        as = "Option<serde_with::base64::Base64<serde_with::base64::UrlSafe, serde_with::formats::Unpadded>>"
27    )]
28    #[serde(
29        rename = "blob",
30        alias = "Blob",
31        skip_serializing_if = "Option::is_none"
32    )]
33    pub blob: Option<Vec<u8>>,
34    #[serde(
35        rename = "written",
36        alias = "Written",
37        skip_serializing_if = "Option::is_none"
38    )]
39    pub written: Option<bool>,
40}
41
42impl AuthenticationExtensionsLargeBlobOutputs {
43    pub fn new() -> AuthenticationExtensionsLargeBlobOutputs {
44        AuthenticationExtensionsLargeBlobOutputs {
45            supported: None,
46            blob: None,
47            written: None,
48        }
49    }
50}