Skip to main content

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