bitwarden_api_api/models/
organization_report_summary_data_response.rs1use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct OrganizationReportSummaryDataResponse {
17 #[serde(rename = "organizationId", alias = "OrganizationId")]
18 pub organization_id: uuid::Uuid,
19 #[serde(rename = "encryptedData", alias = "EncryptedData")]
20 pub encrypted_data: Option<String>,
21 #[serde(rename = "encryptionKey", alias = "EncryptionKey")]
22 pub encryption_key: Option<String>,
23 #[serde(rename = "date", alias = "Date")]
24 pub date: String,
25}
26
27impl OrganizationReportSummaryDataResponse {
28 pub fn new(
29 organization_id: uuid::Uuid,
30 encrypted_data: Option<String>,
31 encryption_key: Option<String>,
32 date: String,
33 ) -> OrganizationReportSummaryDataResponse {
34 OrganizationReportSummaryDataResponse {
35 organization_id,
36 encrypted_data,
37 encryption_key,
38 date,
39 }
40 }
41}