jira_api_v2/models/
custom_field_option_update.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/// CustomFieldOptionUpdate : Details of a custom field option for a context.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CustomFieldOptionUpdate {
17    /// The ID of the custom field option.
18    #[serde(rename = "id")]
19    pub id: String,
20    /// The value of the custom field option.
21    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
22    pub value: 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 CustomFieldOptionUpdate {
29    /// Details of a custom field option for a context.
30    pub fn new(id: String) -> CustomFieldOptionUpdate {
31        CustomFieldOptionUpdate {
32            id,
33            value: None,
34            disabled: None,
35        }
36    }
37}
38