jira/gen/models/
bulk_permission_grants.rs

1/*
2 * The Jira Cloud platform REST API
3 *
4 * Jira Cloud platform REST API documentation
5 *
6 * The version of the OpenAPI document: 1001.0.0-SNAPSHOT
7 * Contact: ecosystem@atlassian.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// BulkPermissionGrants : Details of global and project permissions granted to the user.
12
13#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
14pub struct BulkPermissionGrants {
15    /// List of project permissions and the projects and issues those permissions provide access to.
16    #[serde(rename = "projectPermissions")]
17    pub project_permissions: Vec<crate::gen::models::BulkProjectPermissionGrants>,
18    /// List of permissions granted to the user.
19    #[serde(rename = "globalPermissions")]
20    pub global_permissions: Vec<String>,
21}
22
23impl BulkPermissionGrants {
24    /// Details of global and project permissions granted to the user.
25    pub fn new(
26        project_permissions: Vec<crate::gen::models::BulkProjectPermissionGrants>,
27        global_permissions: Vec<String>,
28    ) -> BulkPermissionGrants {
29        BulkPermissionGrants {
30            project_permissions,
31            global_permissions,
32        }
33    }
34}