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(rename = "object", skip_serializing_if = "Option::is_none")]
18    pub object: Option<String>,
19    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
20    pub id: Option<uuid::Uuid>,
21    #[serde(rename = "organizationId", skip_serializing_if = "Option::is_none")]
22    pub organization_id: Option<uuid::Uuid>,
23    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
24    pub key: Option<String>,
25    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
26    pub value: Option<String>,
27    #[serde(rename = "note", skip_serializing_if = "Option::is_none")]
28    pub note: Option<String>,
29    #[serde(rename = "creationDate", skip_serializing_if = "Option::is_none")]
30    pub creation_date: Option<String>,
31    #[serde(rename = "revisionDate", skip_serializing_if = "Option::is_none")]
32    pub revision_date: Option<String>,
33    #[serde(rename = "projects", skip_serializing_if = "Option::is_none")]
34    pub projects: Option<Vec<models::SecretResponseInnerProject>>,
35    #[serde(rename = "read", skip_serializing_if = "Option::is_none")]
36    pub read: Option<bool>,
37    #[serde(rename = "write", skip_serializing_if = "Option::is_none")]
38    pub write: Option<bool>,
39}
40
41impl SecretResponseModel {
42    pub fn new() -> SecretResponseModel {
43        SecretResponseModel {
44            object: None,
45            id: None,
46            organization_id: None,
47            key: None,
48            value: None,
49            note: None,
50            creation_date: None,
51            revision_date: None,
52            projects: None,
53            read: None,
54            write: None,
55        }
56    }
57}