jira_api_v2/models/
issue_bean.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct IssueBean {
16    /// Expand options that include additional issue details in the response.
17    #[serde(rename = "expand", skip_serializing_if = "Option::is_none")]
18    pub expand: Option<String>,
19    /// The ID of the issue.
20    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
21    pub id: Option<String>,
22    /// The URL of the issue details.
23    #[serde(rename = "self", skip_serializing_if = "Option::is_none")]
24    pub param_self: Option<String>,
25    /// The key of the issue.
26    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
27    pub key: Option<String>,
28    /// The rendered value of each field present on the issue.
29    #[serde(rename = "renderedFields", skip_serializing_if = "Option::is_none")]
30    pub rendered_fields: Option<std::collections::HashMap<String, serde_json::Value>>,
31    /// Details of the issue properties identified in the request.
32    #[serde(rename = "properties", skip_serializing_if = "Option::is_none")]
33    pub properties: Option<std::collections::HashMap<String, serde_json::Value>>,
34    /// The ID and name of each field present on the issue.
35    #[serde(rename = "names", skip_serializing_if = "Option::is_none")]
36    pub names: Option<std::collections::HashMap<String, String>>,
37    /// The schema describing each field present on the issue.
38    #[serde(rename = "schema", skip_serializing_if = "Option::is_none")]
39    pub schema: Option<std::collections::HashMap<String, models::JsonTypeBean>>,
40    /// The transitions that can be performed on the issue.
41    #[serde(rename = "transitions", skip_serializing_if = "Option::is_none")]
42    pub transitions: Option<Vec<models::IssueTransition>>,
43    /// The operations that can be performed on the issue.
44    #[serde(rename = "operations", skip_serializing_if = "Option::is_none")]
45    pub operations: Option<models::Operations>,
46    /// The metadata for the fields on the issue that can be amended.
47    #[serde(rename = "editmeta", skip_serializing_if = "Option::is_none")]
48    pub editmeta: Option<Box<models::IssueUpdateMetadata>>,
49    /// Details of changelogs associated with the issue.
50    #[serde(rename = "changelog", skip_serializing_if = "Option::is_none")]
51    pub changelog: Option<Box<models::PageOfChangelogs>>,
52    /// The versions of each field on the issue.
53    #[serde(rename = "versionedRepresentations", skip_serializing_if = "Option::is_none")]
54    pub versioned_representations: Option<std::collections::HashMap<String, std::collections::HashMap<String, serde_json::Value>>>,
55    #[serde(rename = "fieldsToInclude", skip_serializing_if = "Option::is_none")]
56    pub fields_to_include: Option<Box<models::IncludedFields>>,
57    #[serde(rename = "fields", skip_serializing_if = "Option::is_none")]
58    pub fields: Option<std::collections::HashMap<String, serde_json::Value>>,
59}
60
61impl IssueBean {
62    pub fn new() -> IssueBean {
63        IssueBean {
64            expand: None,
65            id: None,
66            param_self: None,
67            key: None,
68            rendered_fields: None,
69            properties: None,
70            names: None,
71            schema: None,
72            transitions: None,
73            operations: None,
74            editmeta: None,
75            changelog: None,
76            versioned_representations: None,
77            fields_to_include: None,
78            fields: None,
79        }
80    }
81}
82