bitwarden_api_api/models/
secret_version_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 SecretVersionResponseModel {
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 = "secretId",
27        alias = "SecretId",
28        skip_serializing_if = "Option::is_none"
29    )]
30    pub secret_id: Option<uuid::Uuid>,
31    #[serde(
32        rename = "value",
33        alias = "Value",
34        skip_serializing_if = "Option::is_none"
35    )]
36    pub value: Option<String>,
37    #[serde(
38        rename = "versionDate",
39        alias = "VersionDate",
40        skip_serializing_if = "Option::is_none"
41    )]
42    pub version_date: Option<String>,
43    #[serde(
44        rename = "editorServiceAccountId",
45        alias = "EditorServiceAccountId",
46        skip_serializing_if = "Option::is_none"
47    )]
48    pub editor_service_account_id: Option<uuid::Uuid>,
49    #[serde(
50        rename = "editorOrganizationUserId",
51        alias = "EditorOrganizationUserId",
52        skip_serializing_if = "Option::is_none"
53    )]
54    pub editor_organization_user_id: Option<uuid::Uuid>,
55}
56
57impl SecretVersionResponseModel {
58    pub fn new() -> SecretVersionResponseModel {
59        SecretVersionResponseModel {
60            object: None,
61            id: None,
62            secret_id: None,
63            value: None,
64            version_date: None,
65            editor_service_account_id: None,
66            editor_organization_user_id: None,
67        }
68    }
69}