jira_api_v2/models/
notification_recipients.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/// NotificationRecipients : Details of the users and groups to receive the notification.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NotificationRecipients {
17    /// Whether the notification should be sent to the issue's reporter.
18    #[serde(rename = "reporter", skip_serializing_if = "Option::is_none")]
19    pub reporter: Option<bool>,
20    /// Whether the notification should be sent to the issue's assignees.
21    #[serde(rename = "assignee", skip_serializing_if = "Option::is_none")]
22    pub assignee: Option<bool>,
23    /// Whether the notification should be sent to the issue's watchers.
24    #[serde(rename = "watchers", skip_serializing_if = "Option::is_none")]
25    pub watchers: Option<bool>,
26    /// Whether the notification should be sent to the issue's voters.
27    #[serde(rename = "voters", skip_serializing_if = "Option::is_none")]
28    pub voters: Option<bool>,
29    /// List of users to receive the notification.
30    #[serde(rename = "users", skip_serializing_if = "Option::is_none")]
31    pub users: Option<Vec<models::UserDetails>>,
32    /// List of groups to receive the notification.
33    #[serde(rename = "groups", skip_serializing_if = "Option::is_none")]
34    pub groups: Option<Vec<models::GroupName>>,
35}
36
37impl NotificationRecipients {
38    /// Details of the users and groups to receive the notification.
39    pub fn new() -> NotificationRecipients {
40        NotificationRecipients {
41            reporter: None,
42            assignee: None,
43            watchers: None,
44            voters: None,
45            users: None,
46            groups: None,
47        }
48    }
49}
50