bitwarden_api_api/models/
base_secret_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 BaseSecretResponseModel {
17    #[serde(
18        rename = "object",
19        alias = "Object",
20        skip_serializing_if = "Option::is_none"
21    )]
22    pub object: Option<String>,
23    #[serde(rename = "id", alias = "Id", skip_serializing_if = "Option::is_none")]
24    pub id: Option<uuid::Uuid>,
25    #[serde(
26        rename = "organizationId",
27        alias = "OrganizationId",
28        skip_serializing_if = "Option::is_none"
29    )]
30    pub organization_id: Option<uuid::Uuid>,
31    #[serde(rename = "key", alias = "Key", skip_serializing_if = "Option::is_none")]
32    pub key: Option<String>,
33    #[serde(
34        rename = "value",
35        alias = "Value",
36        skip_serializing_if = "Option::is_none"
37    )]
38    pub value: Option<String>,
39    #[serde(
40        rename = "note",
41        alias = "Note",
42        skip_serializing_if = "Option::is_none"
43    )]
44    pub note: Option<String>,
45    #[serde(
46        rename = "creationDate",
47        alias = "CreationDate",
48        skip_serializing_if = "Option::is_none"
49    )]
50    pub creation_date: Option<String>,
51    #[serde(
52        rename = "revisionDate",
53        alias = "RevisionDate",
54        skip_serializing_if = "Option::is_none"
55    )]
56    pub revision_date: Option<String>,
57    #[serde(
58        rename = "projects",
59        alias = "Projects",
60        skip_serializing_if = "Option::is_none"
61    )]
62    pub projects: Option<Vec<models::SecretResponseInnerProject>>,
63}
64
65impl BaseSecretResponseModel {
66    pub fn new() -> BaseSecretResponseModel {
67        BaseSecretResponseModel {
68            object: None,
69            id: None,
70            organization_id: None,
71            key: None,
72            value: None,
73            note: None,
74            creation_date: None,
75            revision_date: None,
76            projects: None,
77        }
78    }
79}