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