1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* The Jira Cloud platform REST API
*
* Jira Cloud platform REST API documentation
*
* The version of the OpenAPI document: 1001.0.0-SNAPSHOT
* Contact: ecosystem@atlassian.com
* Generated by: https://openapi-generator.tech
*/
/// IssueUpdateDetails : Details of an issue update request.
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct IssueUpdateDetails {
/// Details of a transition. Required when performing a transition, optional when creating or editing an issue.
#[serde(rename = "transition", skip_serializing_if = "Option::is_none")]
pub transition: Option<crate::models::IssueTransition>,
/// List of issue screen fields to update, specifying the sub-field to update and its value for each field. This field provides a straightforward option when setting a sub-field. When multiple sub-fields or other operations are required, use `update`. Fields included in here cannot be included in `update`.
#[serde(rename = "fields", skip_serializing_if = "Option::is_none")]
pub fields: Option<::std::collections::HashMap<String, serde_json::Value>>,
/// A Map containing the field field name and a list of operations to perform on the issue screen field. Note that fields included in here cannot be included in `fields`.
#[serde(rename = "update", skip_serializing_if = "Option::is_none")]
pub update: Option<::std::collections::HashMap<String, Vec<crate::models::FieldUpdateOperation>>>,
/// Additional issue history details.
#[serde(rename = "historyMetadata", skip_serializing_if = "Option::is_none")]
pub history_metadata: Option<crate::models::HistoryMetadata>,
/// Details of issue properties to be add or update.
#[serde(rename = "properties", skip_serializing_if = "Option::is_none")]
pub properties: Option<Vec<crate::models::EntityProperty>>,
}
impl IssueUpdateDetails {
/// Details of an issue update request.
pub fn new() -> IssueUpdateDetails {
IssueUpdateDetails {
transition: None,
fields: None,
update: None,
history_metadata: None,
properties: None,
}
}
}