jira_api_v2/models/
status_category.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/// StatusCategory : A status category.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct StatusCategory {
17    /// The URL of the status category.
18    #[serde(rename = "self", skip_serializing_if = "Option::is_none")]
19    pub param_self: Option<String>,
20    /// The ID of the status category.
21    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
22    pub id: Option<i64>,
23    /// The key of the status category.
24    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
25    pub key: Option<String>,
26    /// The name of the color used to represent the status category.
27    #[serde(rename = "colorName", skip_serializing_if = "Option::is_none")]
28    pub color_name: Option<String>,
29    /// The name of the status category.
30    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
31    pub name: Option<String>,
32}
33
34impl StatusCategory {
35    /// A status category.
36    pub fn new() -> StatusCategory {
37        StatusCategory {
38            param_self: None,
39            id: None,
40            key: None,
41            color_name: None,
42            name: None,
43        }
44    }
45}
46