jira_api_v2/models/
issue_field_option_configuration.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/// IssueFieldOptionConfiguration : Details of the projects the option is available in.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct IssueFieldOptionConfiguration {
17    /// Defines the projects that the option is available in. If the scope is not defined, then the option is available in all projects.
18    #[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
19    pub scope: Option<Box<models::IssueFieldOptionScopeBean>>,
20    /// DEPRECATED
21    #[serde(rename = "attributes", skip_serializing_if = "Option::is_none")]
22    pub attributes: Option<std::collections::HashSet<Attributes>>,
23}
24
25impl IssueFieldOptionConfiguration {
26    /// Details of the projects the option is available in.
27    pub fn new() -> IssueFieldOptionConfiguration {
28        IssueFieldOptionConfiguration {
29            scope: None,
30            attributes: None,
31        }
32    }
33}
34/// DEPRECATED
35#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
36pub enum Attributes {
37    #[serde(rename = "notSelectable")]
38    NotSelectable,
39    #[serde(rename = "defaultValue")]
40    DefaultValue,
41}
42
43impl Default for Attributes {
44    fn default() -> Attributes {
45        Self::NotSelectable
46    }
47}
48