jira_api_v2/models/
project_issue_security_levels.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/// ProjectIssueSecurityLevels : List of issue level security items in a project.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ProjectIssueSecurityLevels {
17    /// Issue level security items list.
18    #[serde(rename = "levels")]
19    pub levels: Vec<models::SecurityLevel>,
20}
21
22impl ProjectIssueSecurityLevels {
23    /// List of issue level security items in a project.
24    pub fn new(levels: Vec<models::SecurityLevel>) -> ProjectIssueSecurityLevels {
25        ProjectIssueSecurityLevels {
26            levels,
27        }
28    }
29}
30