1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* The Jira Cloud platform REST API
*
* Jira Cloud platform REST API documentation
*
* The version of the OpenAPI document: 1001.0.0-SNAPSHOT
* Contact: ecosystem@atlassian.com
* Generated by: https://openapi-generator.tech
*/
/// IssueFieldOption : Details of the options for a select list issue field.
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct IssueFieldOption {
/// The unique identifier for the option. This is only unique within the select field's set of options.
#[serde(rename = "id")]
pub id: i64,
/// The option's name, which is displayed in Jira.
#[serde(rename = "value")]
pub value: String,
/// The properties of the object, as arbitrary key-value pairs. These properties can be searched using JQL, if the extractions (see [Issue Field Option Property Index](https://developer.atlassian.com/cloud/jira/platform/modules/issue-field-option-property-index/)) are defined in the descriptor for the issue field module.
#[serde(rename = "properties", skip_serializing_if = "Option::is_none")]
pub properties: Option<::std::collections::HashMap<String, serde_json::Value>>,
#[serde(rename = "config", skip_serializing_if = "Option::is_none")]
pub config: Option<crate::models::IssueFieldOptionConfiguration>,
}
impl IssueFieldOption {
/// Details of the options for a select list issue field.
pub fn new(id: i64, value: String) -> IssueFieldOption {
IssueFieldOption {
id,
value,
properties: None,
config: None,
}
}
}