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