jira_api_v2/models/
custom_field_context_default_value_multiple_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/// CustomFieldContextDefaultValueMultipleOption : Default value for a multi-select custom field.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CustomFieldContextDefaultValueMultipleOption {
17    /// The ID of the context.
18    #[serde(rename = "contextId")]
19    pub context_id: String,
20    /// The list of IDs of the default options.
21    #[serde(rename = "optionIds")]
22    pub option_ids: Vec<String>,
23    #[serde(rename = "type")]
24    pub r#type: String,
25}
26
27impl CustomFieldContextDefaultValueMultipleOption {
28    /// Default value for a multi-select custom field.
29    pub fn new(context_id: String, option_ids: Vec<String>, r#type: String) -> CustomFieldContextDefaultValueMultipleOption {
30        CustomFieldContextDefaultValueMultipleOption {
31            context_id,
32            option_ids,
33            r#type,
34        }
35    }
36}
37