jira_api_v2/models/
notification_scheme_event.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[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 pub fn new() -> NotificationSchemeEvent {
26 NotificationSchemeEvent {
27 event: None,
28 notifications: None,
29 }
30 }
31}
32