jira_api_v2/models/
notification_recipients_restrictions.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/// NotificationRecipientsRestrictions : Details of the group membership or permissions needed to receive the notification.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NotificationRecipientsRestrictions {
17    /// List of group memberships required to receive the notification.
18    #[serde(rename = "groups", skip_serializing_if = "Option::is_none")]
19    pub groups: Option<Vec<models::GroupName>>,
20    /// List of permissions required to receive the notification.
21    #[serde(rename = "permissions", skip_serializing_if = "Option::is_none")]
22    pub permissions: Option<Vec<models::RestrictedPermission>>,
23}
24
25impl NotificationRecipientsRestrictions {
26    /// Details of the group membership or permissions needed to receive the notification.
27    pub fn new() -> NotificationRecipientsRestrictions {
28        NotificationRecipientsRestrictions {
29            groups: None,
30            permissions: None,
31        }
32    }
33}
34