jira_api_v2/models/
priority.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/// Priority : An issue priority.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Priority {
17    /// The URL of the issue priority.
18    #[serde(rename = "self", skip_serializing_if = "Option::is_none")]
19    pub param_self: Option<String>,
20    /// The color used to indicate the issue priority.
21    #[serde(rename = "statusColor", skip_serializing_if = "Option::is_none")]
22    pub status_color: Option<String>,
23    /// The description of the issue priority.
24    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
25    pub description: Option<String>,
26    /// The URL of the icon for the issue priority.
27    #[serde(rename = "iconUrl", skip_serializing_if = "Option::is_none")]
28    pub icon_url: Option<String>,
29    /// The name of the issue priority.
30    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
31    pub name: Option<String>,
32    /// The ID of the issue priority.
33    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
34    pub id: Option<String>,
35}
36
37impl Priority {
38    /// An issue priority.
39    pub fn new() -> Priority {
40        Priority {
41            param_self: None,
42            status_color: None,
43            description: None,
44            icon_url: None,
45            name: None,
46            id: None,
47        }
48    }
49}
50