jira2/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
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct BulkPermissionGrants {
17 /// List of project permissions and the projects and issues those permissions provide access to.
18 #[serde(rename = "projectPermissions")]
19 pub project_permissions: Vec<crate::models::BulkProjectPermissionGrants>,
20 /// List of permissions granted to the user.
21 #[serde(rename = "globalPermissions")]
22 pub global_permissions: Vec<String>,
23}
24
25impl BulkPermissionGrants {
26 /// Details of global and project permissions granted to the user.
27 pub fn new(project_permissions: Vec<crate::models::BulkProjectPermissionGrants>, global_permissions: Vec<String>) -> BulkPermissionGrants {
28 BulkPermissionGrants {
29 project_permissions,
30 global_permissions,
31 }
32 }
33}
34
35