bitwarden_api_api/models/
emergency_access_grantor_details_response_model.rs1use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EmergencyAccessGrantorDetailsResponseModel {
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 = "status", skip_serializing_if = "Option::is_none")]
22 pub status: Option<models::EmergencyAccessStatusType>,
23 #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
24 pub r#type: Option<models::EmergencyAccessType>,
25 #[serde(rename = "waitTimeDays", skip_serializing_if = "Option::is_none")]
26 pub wait_time_days: Option<i32>,
27 #[serde(rename = "grantorId", skip_serializing_if = "Option::is_none")]
28 pub grantor_id: Option<uuid::Uuid>,
29 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
30 pub name: Option<String>,
31 #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
32 pub email: Option<String>,
33 #[serde(rename = "avatarColor", skip_serializing_if = "Option::is_none")]
34 pub avatar_color: Option<String>,
35}
36
37impl EmergencyAccessGrantorDetailsResponseModel {
38 pub fn new() -> EmergencyAccessGrantorDetailsResponseModel {
39 EmergencyAccessGrantorDetailsResponseModel {
40 object: None,
41 id: None,
42 status: None,
43 r#type: None,
44 wait_time_days: None,
45 grantor_id: None,
46 name: None,
47 email: None,
48 avatar_color: None,
49 }
50 }
51}