bitwarden_api_api/models/
service_account_granted_policies_request_model.rs

1/*
2 * Bitwarden Internal API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: latest
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ServiceAccountGrantedPoliciesRequestModel {
17    #[serde(
18        rename = "projectGrantedPolicyRequests",
19        alias = "ProjectGrantedPolicyRequests"
20    )]
21    pub project_granted_policy_requests: Option<Vec<models::GrantedAccessPolicyRequest>>,
22}
23
24impl ServiceAccountGrantedPoliciesRequestModel {
25    pub fn new(
26        project_granted_policy_requests: Option<Vec<models::GrantedAccessPolicyRequest>>,
27    ) -> ServiceAccountGrantedPoliciesRequestModel {
28        ServiceAccountGrantedPoliciesRequestModel {
29            project_granted_policy_requests,
30        }
31    }
32}