jira_v3_openapi 1.6.1

Jira Cloud platform REST API lib (OpenAPI document version: 1001.0.0-SNAPSHOT-af42c50d50804c2f1b8ad4bb80d52c53890867e2)
Documentation
/*
 * The Jira Cloud platform REST API
 *
 * Jira Cloud platform REST API documentation
 *
 * The version of the OpenAPI document: 1001.0.0-SNAPSHOT-af42c50d50804c2f1b8ad4bb80d52c53890867e2
 * 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,
        }
    }
}