bitwarden_api_api/models/
granted_access_policy_request.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GrantedAccessPolicyRequest {
#[serde(rename = "grantedId")]
pub granted_id: uuid::Uuid,
#[serde(rename = "read")]
pub read: bool,
#[serde(rename = "write")]
pub write: bool,
}
impl GrantedAccessPolicyRequest {
pub fn new(granted_id: uuid::Uuid, read: bool, write: bool) -> GrantedAccessPolicyRequest {
GrantedAccessPolicyRequest {
granted_id,
read,
write,
}
}
}