jirav2/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
11/// IssueFieldOptionConfiguration : Details of the projects the option is available in.
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, 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<crate::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
35/// DEPRECATED
36#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
37pub enum Attributes {
38    #[serde(rename = "notSelectable")]
39    NotSelectable,
40    #[serde(rename = "defaultValue")]
41    DefaultValue,
42}
43
44impl Default for Attributes {
45    fn default() -> Attributes {
46        Self::NotSelectable
47    }
48}
49