jira_api_v2/models/
custom_field_option_value.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/// CustomFieldOptionValue : Value of a custom field option and the values of its cascading options.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CustomFieldOptionValue {
17    /// The value of the custom field option.
18    #[serde(rename = "value")]
19    pub value: String,
20    /// The cascading options.
21    #[serde(rename = "cascadingOptions", skip_serializing_if = "Option::is_none")]
22    pub cascading_options: Option<Vec<String>>,
23}
24
25impl CustomFieldOptionValue {
26    /// Value of a custom field option and the values of its cascading options.
27    pub fn new(value: String) -> CustomFieldOptionValue {
28        CustomFieldOptionValue {
29            value,
30            cascading_options: None,
31        }
32    }
33}
34