Skip to content

Commit b15b25b

Browse files
author
Marek Suchánek
committed
Some user properties are optional; msuchane#4
1 parent 08c3510 commit b15b25b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/issue_model.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ pub struct User {
104104
pub display_name: String,
105105
#[serde(rename = "emailAddress")]
106106
pub email_address: Option<String>,
107-
pub key: String,
108-
pub name: String,
107+
pub key: Option<String>,
108+
pub name: Option<String>,
109109
#[serde(rename = "timeZone")]
110110
pub time_zone: String,
111111
#[serde(rename = "avatarUrls")]
@@ -114,6 +114,8 @@ pub struct User {
114114
pub self_link: String,
115115
#[serde(flatten)]
116116
pub extra: Value,
117+
#[serde(rename = "accountId")]
118+
pub account_id: Option<String>,
117119
}
118120

119121
/// The representation of a Jira product version.

0 commit comments

Comments
 (0)