jira_api_v2/models/
issue_field_option_create_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 IssueFieldOptionCreateBean {
16    /// The option's name, which is displayed in Jira.
17    #[serde(rename = "value")]
18    pub value: String,
19    /// The properties of the option as arbitrary key-value pairs. These properties can be searched using JQL, if the extractions (see https://developer.atlassian.com/cloud/jira/platform/modules/issue-field-option-property-index/) are defined in the descriptor for the issue field module.
20    #[serde(rename = "properties", skip_serializing_if = "Option::is_none")]
21    pub properties: Option<std::collections::HashMap<String, serde_json::Value>>,
22    #[serde(rename = "config", skip_serializing_if = "Option::is_none")]
23    pub config: Option<Box<models::IssueFieldOptionConfiguration>>,
24}
25
26impl IssueFieldOptionCreateBean {
27    pub fn new(value: String) -> IssueFieldOptionCreateBean {
28        IssueFieldOptionCreateBean {
29            value,
30            properties: None,
31            config: None,
32        }
33    }
34}
35