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