bitwarden_api_api/models/
organization_api_key_request_model.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};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct OrganizationApiKeyRequestModel {
17    #[serde(
18        rename = "masterPasswordHash",
19        alias = "MasterPasswordHash",
20        skip_serializing_if = "Option::is_none"
21    )]
22    pub master_password_hash: Option<String>,
23    #[serde(rename = "otp", alias = "Otp", skip_serializing_if = "Option::is_none")]
24    pub otp: Option<String>,
25    #[serde(
26        rename = "authRequestAccessCode",
27        alias = "AuthRequestAccessCode",
28        skip_serializing_if = "Option::is_none"
29    )]
30    pub auth_request_access_code: Option<String>,
31    #[serde(
32        rename = "secret",
33        alias = "Secret",
34        skip_serializing_if = "Option::is_none"
35    )]
36    pub secret: Option<String>,
37    #[serde(
38        rename = "type",
39        alias = "R#type",
40        skip_serializing_if = "Option::is_none"
41    )]
42    pub r#type: Option<models::OrganizationApiKeyType>,
43}
44
45impl OrganizationApiKeyRequestModel {
46    pub fn new() -> OrganizationApiKeyRequestModel {
47        OrganizationApiKeyRequestModel {
48            master_password_hash: None,
49            otp: None,
50            auth_request_access_code: None,
51            secret: None,
52            r#type: None,
53        }
54    }
55}