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