bitwarden_api_api/models/
keys_response_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 KeysResponseModel {
17    #[serde(
18        rename = "object",
19        alias = "Object",
20        skip_serializing_if = "Option::is_none"
21    )]
22    pub object: Option<String>,
23    /// The master key wrapped user key. The master key can either be a master-password master key
24    /// or a key-connector master key.
25    #[serde(rename = "key", alias = "Key", skip_serializing_if = "Option::is_none")]
26    pub key: Option<String>,
27    #[serde(
28        rename = "publicKey",
29        alias = "PublicKey",
30        skip_serializing_if = "Option::is_none"
31    )]
32    pub public_key: Option<String>,
33    #[serde(
34        rename = "privateKey",
35        alias = "PrivateKey",
36        skip_serializing_if = "Option::is_none"
37    )]
38    pub private_key: Option<String>,
39    #[serde(
40        rename = "accountKeys",
41        alias = "AccountKeys",
42        skip_serializing_if = "Option::is_none"
43    )]
44    pub account_keys: Option<Box<models::PrivateKeysResponseModel>>,
45}
46
47impl KeysResponseModel {
48    pub fn new() -> KeysResponseModel {
49        KeysResponseModel {
50            object: None,
51            key: None,
52            public_key: None,
53            private_key: None,
54            account_keys: None,
55        }
56    }
57}