jira_api_v2/models/
notification_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/// NotificationEvent : Details about a notification event.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NotificationEvent {
17    /// The ID of the event. The event can be a [Jira system event](https://confluence.atlassian.com/x/8YdKLg#Creatinganotificationscheme-eventsEvents) or a [custom event](https://confluence.atlassian.com/x/AIlKLg).
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<i64>,
20    /// The name of the event.
21    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
22    pub name: Option<String>,
23    /// The description of the event.
24    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
25    pub description: Option<String>,
26    /// The template of the event. Only custom events configured by Jira administrators have template.
27    #[serde(rename = "templateEvent", skip_serializing_if = "Option::is_none")]
28    pub template_event: Option<Box<models::NotificationEvent>>,
29}
30
31impl NotificationEvent {
32    /// Details about a notification event.
33    pub fn new() -> NotificationEvent {
34        NotificationEvent {
35            id: None,
36            name: None,
37            description: None,
38            template_event: None,
39        }
40    }
41}
42