jira_api_v2/models/
notification_scheme_event.rs

1/*
2 * The Jira Cloud platform REST API
3 *
4 * Jira Cloud platform REST API documentation
5 *
6 * The version of the OpenAPI document: 1001.0.0-SNAPSHOT
7 * Contact: ecosystem@atlassian.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// NotificationSchemeEvent : Details about a notification scheme event.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NotificationSchemeEvent {
17    #[serde(rename = "event", skip_serializing_if = "Option::is_none")]
18    pub event: Option<Box<models::NotificationEvent>>,
19    #[serde(rename = "notifications", skip_serializing_if = "Option::is_none")]
20    pub notifications: Option<Vec<models::EventNotification>>,
21}
22
23impl NotificationSchemeEvent {
24    /// Details about a notification scheme event.
25    pub fn new() -> NotificationSchemeEvent {
26        NotificationSchemeEvent {
27            event: None,
28            notifications: None,
29        }
30    }
31}
32