jira_api_v2/models/custom_field_option_create.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/// CustomFieldOptionCreate : Details of a custom field option to create.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CustomFieldOptionCreate {
17 /// The value of the custom field option.
18 #[serde(rename = "value")]
19 pub value: String,
20 /// For cascading options, the ID of the custom field object containing the cascading option.
21 #[serde(rename = "optionId", skip_serializing_if = "Option::is_none")]
22 pub option_id: Option<String>,
23 /// Whether the option is disabled.
24 #[serde(rename = "disabled", skip_serializing_if = "Option::is_none")]
25 pub disabled: Option<bool>,
26}
27
28impl CustomFieldOptionCreate {
29 /// Details of a custom field option to create.
30 pub fn new(value: String) -> CustomFieldOptionCreate {
31 CustomFieldOptionCreate {
32 value,
33 option_id: None,
34 disabled: None,
35 }
36 }
37}
38