jira_api_v2/models/
field_configuration_item.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/// FieldConfigurationItem : A field within a field configuration.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FieldConfigurationItem {
17    /// The ID of the field within the field configuration.
18    #[serde(rename = "id")]
19    pub id: String,
20    /// The description of the field within the field configuration.
21    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
22    pub description: Option<String>,
23    /// Whether the field is hidden in the field configuration.
24    #[serde(rename = "isHidden", skip_serializing_if = "Option::is_none")]
25    pub is_hidden: Option<bool>,
26    /// Whether the field is required in the field configuration.
27    #[serde(rename = "isRequired", skip_serializing_if = "Option::is_none")]
28    pub is_required: Option<bool>,
29}
30
31impl FieldConfigurationItem {
32    /// A field within a field configuration.
33    pub fn new(id: String) -> FieldConfigurationItem {
34        FieldConfigurationItem {
35            id,
36            description: None,
37            is_hidden: None,
38            is_required: None,
39        }
40    }
41}
42