bitwarden_api_api/models/
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 SecretResponseModel {
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    #[serde(
64        rename = "read",
65        alias = "Read",
66        skip_serializing_if = "Option::is_none"
67    )]
68    pub read: Option<bool>,
69    #[serde(
70        rename = "write",
71        alias = "Write",
72        skip_serializing_if = "Option::is_none"
73    )]
74    pub write: Option<bool>,
75}
76
77impl SecretResponseModel {
78    pub fn new() -> SecretResponseModel {
79        SecretResponseModel {
80            object: None,
81            id: None,
82            organization_id: None,
83            key: None,
84            value: None,
85            note: None,
86            creation_date: None,
87            revision_date: None,
88            projects: None,
89            read: None,
90            write: None,
91        }
92    }
93}