/*
* The Jira Cloud platform REST API
*
* Jira Cloud platform REST API documentation
*
* The version of the OpenAPI document: 1001.0.0-SNAPSHOT-37416ade0f89f7cb291510843b8a4bbd682b33a1
* Contact: ecosystem@atlassian.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// IssueBulkDeletePayload : Issue Bulk Delete Payload
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct IssueBulkDeletePayload {
/// List of issue IDs or keys which are to be bulk deleted. These IDs or keys can be from different projects and issue types.
#[serde(rename = "selectedIssueIdsOrKeys")]
pub selected_issue_ids_or_keys: Vec<String>,
/// A boolean value that indicates whether to send a bulk change notification when the issues are being deleted. If `true`, dispatches a bulk notification email to users about the updates.
#[serde(rename = "sendBulkNotification", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub send_bulk_notification: Option<Option<bool>>,
}
impl IssueBulkDeletePayload {
/// Issue Bulk Delete Payload
pub fn new(selected_issue_ids_or_keys: Vec<String>) -> IssueBulkDeletePayload {
IssueBulkDeletePayload {
selected_issue_ids_or_keys,
send_bulk_notification: None,
}
}
}