bitwarden_api_api/models/
secret_access_policies_requests_model.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SecretAccessPoliciesRequestsModel {
#[serde(rename = "userAccessPolicyRequests")]
pub user_access_policy_requests: Option<Vec<models::AccessPolicyRequest>>,
#[serde(rename = "groupAccessPolicyRequests")]
pub group_access_policy_requests: Option<Vec<models::AccessPolicyRequest>>,
#[serde(rename = "serviceAccountAccessPolicyRequests")]
pub service_account_access_policy_requests: Option<Vec<models::AccessPolicyRequest>>,
}
impl SecretAccessPoliciesRequestsModel {
pub fn new(
user_access_policy_requests: Option<Vec<models::AccessPolicyRequest>>,
group_access_policy_requests: Option<Vec<models::AccessPolicyRequest>>,
service_account_access_policy_requests: Option<Vec<models::AccessPolicyRequest>>,
) -> SecretAccessPoliciesRequestsModel {
SecretAccessPoliciesRequestsModel {
user_access_policy_requests,
group_access_policy_requests,
service_account_access_policy_requests,
}
}
}