Skip to main content

bitwarden_api_api/models/
authentication_extensions_prf_values.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 AuthenticationExtensionsPrfValues {
19    #[serde_as(
20        as = "Option<serde_with::base64::Base64<serde_with::base64::UrlSafe, serde_with::formats::Unpadded>>"
21    )]
22    #[serde(rename = "first", alias = "First")]
23    pub first: Option<Vec<u8>>,
24    #[serde_as(
25        as = "Option<serde_with::base64::Base64<serde_with::base64::UrlSafe, serde_with::formats::Unpadded>>"
26    )]
27    #[serde(
28        rename = "second",
29        alias = "Second",
30        skip_serializing_if = "Option::is_none"
31    )]
32    pub second: Option<Vec<u8>>,
33}
34
35impl AuthenticationExtensionsPrfValues {
36    pub fn new(first: Option<Vec<u8>>) -> AuthenticationExtensionsPrfValues {
37        AuthenticationExtensionsPrfValues {
38            first,
39            second: None,
40        }
41    }
42}