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(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}
36
37impl BaseSecretResponseModel {
38    pub fn new() -> BaseSecretResponseModel {
39        BaseSecretResponseModel {
40            object: None,
41            id: None,
42            organization_id: None,
43            key: None,
44            value: None,
45            note: None,
46            creation_date: None,
47            revision_date: None,
48            projects: None,
49        }
50    }
51}