bitwarden_api_api/models/
granted_project_access_policy_response_model.rs1use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GrantedProjectAccessPolicyResponseModel {
17 #[serde(rename = "object", skip_serializing_if = "Option::is_none")]
18 pub object: Option<String>,
19 #[serde(rename = "read", skip_serializing_if = "Option::is_none")]
20 pub read: Option<bool>,
21 #[serde(rename = "write", skip_serializing_if = "Option::is_none")]
22 pub write: Option<bool>,
23 #[serde(rename = "grantedProjectId", skip_serializing_if = "Option::is_none")]
24 pub granted_project_id: Option<uuid::Uuid>,
25 #[serde(rename = "grantedProjectName", skip_serializing_if = "Option::is_none")]
26 pub granted_project_name: Option<String>,
27}
28
29impl GrantedProjectAccessPolicyResponseModel {
30 pub fn new() -> GrantedProjectAccessPolicyResponseModel {
31 GrantedProjectAccessPolicyResponseModel {
32 object: None,
33 read: None,
34 write: None,
35 granted_project_id: None,
36 granted_project_name: None,
37 }
38 }
39}