jira_api_v2/models/
permitted_projects.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/// PermittedProjects : A list of projects in which a user is granted permissions.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PermittedProjects {
17    /// A list of projects.
18    #[serde(rename = "projects", skip_serializing_if = "Option::is_none")]
19    pub projects: Option<Vec<models::ProjectIdentifierBean>>,
20}
21
22impl PermittedProjects {
23    /// A list of projects in which a user is granted permissions.
24    pub fn new() -> PermittedProjects {
25        PermittedProjects {
26            projects: None,
27        }
28    }
29}
30