jira_api_v2/models/
issue_field_option_scope_bean.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct IssueFieldOptionScopeBean {
16    /// DEPRECATED
17    #[serde(rename = "projects", skip_serializing_if = "Option::is_none")]
18    pub projects: Option<Vec<i64>>,
19    /// Defines the projects in which the option is available and the behavior of the option within each project. Specify one object per project. The behavior of the option in a project context overrides the behavior in the global context.
20    #[serde(rename = "projects2", skip_serializing_if = "Option::is_none")]
21    pub projects2: Option<Vec<models::ProjectScopeBean>>,
22    /// Defines the behavior of the option within the global context. If this property is set, even if set to an empty object, then the option is available in all projects.
23    #[serde(rename = "global", skip_serializing_if = "Option::is_none")]
24    pub global: Option<Box<models::GlobalScopeBean>>,
25}
26
27impl IssueFieldOptionScopeBean {
28    pub fn new() -> IssueFieldOptionScopeBean {
29        IssueFieldOptionScopeBean {
30            projects: None,
31            projects2: None,
32            global: None,
33        }
34    }
35}
36