jira_api_v2/models/status.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/// Status : The status of the item.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Status {
17 /// Whether the item is resolved. If set to \"true\", the link to the issue is displayed in a strikethrough font, otherwise the link displays in normal font.
18 #[serde(rename = "resolved", skip_serializing_if = "Option::is_none")]
19 pub resolved: Option<bool>,
20 /// Details of the icon representing the status. If not provided, no status icon displays in Jira.
21 #[serde(rename = "icon", skip_serializing_if = "Option::is_none")]
22 pub icon: Option<models::Icon>,
23}
24
25impl Status {
26 /// The status of the item.
27 pub fn new() -> Status {
28 Status {
29 resolved: None,
30 icon: None,
31 }
32 }
33}
34