jira_api_v2/models/
custom_field_context_default_value_single_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/// CustomFieldContextDefaultValueSingleOption : Default value for a single select custom field.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CustomFieldContextDefaultValueSingleOption {
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    #[serde(rename = "type")]
24    pub r#type: String,
25}
26
27impl CustomFieldContextDefaultValueSingleOption {
28    /// Default value for a single select custom field.
29    pub fn new(context_id: String, option_id: String, r#type: String) -> CustomFieldContextDefaultValueSingleOption {
30        CustomFieldContextDefaultValueSingleOption {
31            context_id,
32            option_id,
33            r#type,
34        }
35    }
36}
37