@@ -11,6 +11,9 @@ use std::fmt::{self, Formatter};
1111#[ skip_serializing_none]
1212#[ derive( Clone , Debug , PartialEq , Serialize ) ]
1313pub struct IssueCaseJiraIssueResult {
14+ /// Jira account identifier.
15+ #[ serde( rename = "account_id" ) ]
16+ pub account_id : Option < String > ,
1417 /// Jira issue identifier.
1518 #[ serde( rename = "issue_id" ) ]
1619 pub issue_id : Option < String > ,
@@ -20,6 +23,9 @@ pub struct IssueCaseJiraIssueResult {
2023 /// Jira issue URL.
2124 #[ serde( rename = "issue_url" ) ]
2225 pub issue_url : Option < String > ,
26+ /// Jira project identifier.
27+ #[ serde( rename = "project_id" ) ]
28+ pub project_id : Option < String > ,
2329 /// Jira project key.
2430 #[ serde( rename = "project_key" ) ]
2531 pub project_key : Option < String > ,
@@ -33,15 +39,22 @@ pub struct IssueCaseJiraIssueResult {
3339impl IssueCaseJiraIssueResult {
3440 pub fn new ( ) -> IssueCaseJiraIssueResult {
3541 IssueCaseJiraIssueResult {
42+ account_id : None ,
3643 issue_id : None ,
3744 issue_key : None ,
3845 issue_url : None ,
46+ project_id : None ,
3947 project_key : None ,
4048 additional_properties : std:: collections:: BTreeMap :: new ( ) ,
4149 _unparsed : false ,
4250 }
4351 }
4452
53+ pub fn account_id ( mut self , value : String ) -> Self {
54+ self . account_id = Some ( value) ;
55+ self
56+ }
57+
4558 pub fn issue_id ( mut self , value : String ) -> Self {
4659 self . issue_id = Some ( value) ;
4760 self
@@ -57,6 +70,11 @@ impl IssueCaseJiraIssueResult {
5770 self
5871 }
5972
73+ pub fn project_id ( mut self , value : String ) -> Self {
74+ self . project_id = Some ( value) ;
75+ self
76+ }
77+
6078 pub fn project_key ( mut self , value : String ) -> Self {
6179 self . project_key = Some ( value) ;
6280 self
@@ -94,9 +112,11 @@ impl<'de> Deserialize<'de> for IssueCaseJiraIssueResult {
94112 where
95113 M : MapAccess < ' a > ,
96114 {
115+ let mut account_id: Option < String > = None ;
97116 let mut issue_id: Option < String > = None ;
98117 let mut issue_key: Option < String > = None ;
99118 let mut issue_url: Option < String > = None ;
119+ let mut project_id: Option < String > = None ;
100120 let mut project_key: Option < String > = None ;
101121 let mut additional_properties: std:: collections:: BTreeMap <
102122 String ,
@@ -106,6 +126,12 @@ impl<'de> Deserialize<'de> for IssueCaseJiraIssueResult {
106126
107127 while let Some ( ( k, v) ) = map. next_entry :: < String , serde_json:: Value > ( ) ? {
108128 match k. as_str ( ) {
129+ "account_id" => {
130+ if v. is_null ( ) {
131+ continue ;
132+ }
133+ account_id = Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
134+ }
109135 "issue_id" => {
110136 if v. is_null ( ) {
111137 continue ;
@@ -124,6 +150,12 @@ impl<'de> Deserialize<'de> for IssueCaseJiraIssueResult {
124150 }
125151 issue_url = Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
126152 }
153+ "project_id" => {
154+ if v. is_null ( ) {
155+ continue ;
156+ }
157+ project_id = Some ( serde_json:: from_value ( v) . map_err ( M :: Error :: custom) ?) ;
158+ }
127159 "project_key" => {
128160 if v. is_null ( ) {
129161 continue ;
@@ -140,9 +172,11 @@ impl<'de> Deserialize<'de> for IssueCaseJiraIssueResult {
140172 }
141173
142174 let content = IssueCaseJiraIssueResult {
175+ account_id,
143176 issue_id,
144177 issue_key,
145178 issue_url,
179+ project_id,
146180 project_key,
147181 additional_properties,
148182 _unparsed,
0 commit comments