jira_api_v2/models/
custom_field_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/// CustomFieldOption : Details of a custom option for a field.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CustomFieldOption {
17    /// The URL of these custom field option details.
18    #[serde(rename = "self", skip_serializing_if = "Option::is_none")]
19    pub param_self: Option<String>,
20    /// The value of the custom field option.
21    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
22    pub value: Option<String>,
23}
24
25impl CustomFieldOption {
26    /// Details of a custom option for a field.
27    pub fn new() -> CustomFieldOption {
28        CustomFieldOption {
29            param_self: None,
30            value: None,
31        }
32    }
33}
34