Documentation
/*
 * 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,
        }
    }
}