jira_api_v2/models/bulk_project_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
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// BulkProjectPermissionGrants : List of project permissions and the projects and issues those permissions grant access to.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BulkProjectPermissionGrants {
17 /// A project permission,
18 #[serde(rename = "permission")]
19 pub permission: String,
20 /// IDs of the issues the user has the permission for.
21 #[serde(rename = "issues")]
22 pub issues: Vec<i64>,
23 /// IDs of the projects the user has the permission for.
24 #[serde(rename = "projects")]
25 pub projects: Vec<i64>,
26}
27
28impl BulkProjectPermissionGrants {
29 /// List of project permissions and the projects and issues those permissions grant access to.
30 pub fn new(permission: String, issues: Vec<i64>, projects: Vec<i64>) -> BulkProjectPermissionGrants {
31 BulkProjectPermissionGrants {
32 permission,
33 issues,
34 projects,
35 }
36 }
37}
38