/*
* The Jira Cloud platform REST API
*
* Jira Cloud platform REST API documentation
*
* The version of the OpenAPI document: 1001.0.0-SNAPSHOT
* Contact: ecosystem@atlassian.com
* Generated by: https://openapi-generator.tech
*/
/// RestrictedPermission : Details of the permission.
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct RestrictedPermission {
/// 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.
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// 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.
#[serde(rename = "key", skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
}
impl RestrictedPermission {
/// Details of the permission.
pub fn new() -> RestrictedPermission {
RestrictedPermission {
id: None,
key: None,
}
}
}