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    #[serde(rename = "key", alias = "Key", skip_serializing_if = "Option::is_none")]
24    pub key: Option<String>,
25    #[serde(
26        rename = "publicKey",
27        alias = "PublicKey",
28        skip_serializing_if = "Option::is_none"
29    )]
30    pub public_key: Option<String>,
31    #[serde(
32        rename = "privateKey",
33        alias = "PrivateKey",
34        skip_serializing_if = "Option::is_none"
35    )]
36    pub private_key: Option<String>,
37}
38
39impl KeysResponseModel {
40    pub fn new() -> KeysResponseModel {
41        KeysResponseModel {
42            object: None,
43            key: None,
44            public_key: None,
45            private_key: None,
46        }
47    }
48}