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