jira_api_v2/models/
notification_scheme.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/// NotificationScheme : Details about a notification scheme.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NotificationScheme {
17    /// Expand options that include additional notification scheme details in the response.
18    #[serde(rename = "expand", skip_serializing_if = "Option::is_none")]
19    pub expand: Option<String>,
20    /// The ID of the notification scheme.
21    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
22    pub id: Option<i64>,
23    #[serde(rename = "self", skip_serializing_if = "Option::is_none")]
24    pub param_self: Option<String>,
25    /// The name of the notification scheme.
26    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
27    pub name: Option<String>,
28    /// The description of the notification scheme.
29    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
30    pub description: Option<String>,
31    /// The notification events and associated recipients.
32    #[serde(rename = "notificationSchemeEvents", skip_serializing_if = "Option::is_none")]
33    pub notification_scheme_events: Option<Vec<models::NotificationSchemeEvent>>,
34    /// The scope of the notification scheme.
35    #[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
36    pub scope: Option<models::Scope>,
37}
38
39impl NotificationScheme {
40    /// Details about a notification scheme.
41    pub fn new() -> NotificationScheme {
42        NotificationScheme {
43            expand: None,
44            id: None,
45            param_self: None,
46            name: None,
47            description: None,
48            notification_scheme_events: None,
49            scope: None,
50        }
51    }
52}
53