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
 */

/// BulkPermissionGrants : Details of global and project permissions granted to the user.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct BulkPermissionGrants {
    /// List of project permissions and the projects and issues those permissions provide access to.
    #[serde(rename = "projectPermissions")]
    pub project_permissions: Vec<crate::models::BulkProjectPermissionGrants>,
    /// List of permissions granted to the user.
    #[serde(rename = "globalPermissions")]
    pub global_permissions: Vec<String>,
}

impl BulkPermissionGrants {
    /// Details of global and project permissions granted to the user.
    pub fn new(project_permissions: Vec<crate::models::BulkProjectPermissionGrants>, global_permissions: Vec<String>) -> BulkPermissionGrants {
        BulkPermissionGrants {
            project_permissions,
            global_permissions,
        }
    }
}