jirav2/models/
issue_field_option_configuration.rs1#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct IssueFieldOptionConfiguration {
17 #[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
19 pub scope: Option<crate::models::IssueFieldOptionScopeBean>,
20 #[serde(rename = "attributes", skip_serializing_if = "Option::is_none")]
22 pub attributes: Option<std::collections::HashSet<Attributes>>,
23}
24
25impl IssueFieldOptionConfiguration {
26 pub fn new() -> IssueFieldOptionConfiguration {
28 IssueFieldOptionConfiguration {
29 scope: None,
30 attributes: None,
31 }
32 }
33}
34
35#[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