jira_api_v2/models/
custom_field_context_default_value_cascading_option.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/// CustomFieldContextDefaultValueCascadingOption : Default value for a cascading select custom field.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CustomFieldContextDefaultValueCascadingOption {
17    /// The ID of the context.
18    #[serde(rename = "contextId")]
19    pub context_id: String,
20    /// The ID of the default option.
21    #[serde(rename = "optionId")]
22    pub option_id: String,
23    /// The ID of the default cascading option.
24    #[serde(rename = "cascadingOptionId", skip_serializing_if = "Option::is_none")]
25    pub cascading_option_id: Option<String>,
26    #[serde(rename = "type")]
27    pub r#type: String,
28}
29
30impl CustomFieldContextDefaultValueCascadingOption {
31    /// Default value for a cascading select custom field.
32    pub fn new(context_id: String, option_id: String, r#type: String) -> CustomFieldContextDefaultValueCascadingOption {
33        CustomFieldContextDefaultValueCascadingOption {
34            context_id,
35            option_id,
36            cascading_option_id: None,
37            r#type,
38        }
39    }
40}
41