jira_api_v2/models/
restricted_permission.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/// RestrictedPermission : Details of the permission.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RestrictedPermission {
17    /// The ID of the permission. Either `id` or `key` must be specified. Use [Get all permissions](#api-rest-api-2-permissions-get) to get the list of permissions.
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<String>,
20    /// The key of the permission. Either `id` or `key` must be specified. Use [Get all permissions](#api-rest-api-2-permissions-get) to get the list of permissions.
21    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
22    pub key: Option<String>,
23}
24
25impl RestrictedPermission {
26    /// Details of the permission.
27    pub fn new() -> RestrictedPermission {
28        RestrictedPermission {
29            id: None,
30            key: None,
31        }
32    }
33}
34