jira_api_v2/models/
fields.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/// Fields : Key fields from the linked issue.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Fields {
17    /// The summary description of the linked issue.
18    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
19    pub summary: Option<String>,
20    /// The status of the linked issue.
21    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
22    pub status: Option<models::StatusDetails>,
23    /// The priority of the linked issue.
24    #[serde(rename = "priority", skip_serializing_if = "Option::is_none")]
25    pub priority: Option<models::Priority>,
26    /// The assignee of the linked issue.
27    #[serde(rename = "assignee", skip_serializing_if = "Option::is_none")]
28    pub assignee: Option<Box<models::UserDetails>>,
29    /// The time tracking of the linked issue.
30    #[serde(rename = "timetracking", skip_serializing_if = "Option::is_none")]
31    pub timetracking: Option<Box<models::TimeTrackingDetails>>,
32    #[serde(rename = "issuetype", skip_serializing_if = "Option::is_none")]
33    pub issuetype: Option<Box<models::IssueTypeDetails>>,
34    /// The type of the linked issue.
35    #[serde(rename = "issueType", skip_serializing_if = "Option::is_none")]
36    pub issue_type: Option<Box<models::IssueTypeDetails>>,
37}
38
39impl Fields {
40    /// Key fields from the linked issue.
41    pub fn new() -> Fields {
42        Fields {
43            summary: None,
44            status: None,
45            priority: None,
46            assignee: None,
47            timetracking: None,
48            issuetype: None,
49            issue_type: None,
50        }
51    }
52}
53