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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
* 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
*/
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct SimplifiedHierarchyLevel {
/// The ID of the hierarchy level. This property is deprecated, see [Change notice: Removing hierarchy level IDs from next-gen APIs](https://developer.atlassian.com/cloud/jira/platform/change-notice-removing-hierarchy-level-ids-from-next-gen-apis/).
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<i64>,
/// The name of this hierarchy level.
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// The ID of the level above this one in the hierarchy. This property is deprecated, see [Change notice: Removing hierarchy level IDs from next-gen APIs](https://developer.atlassian.com/cloud/jira/platform/change-notice-removing-hierarchy-level-ids-from-next-gen-apis/).
#[serde(rename = "aboveLevelId", skip_serializing_if = "Option::is_none")]
pub above_level_id: Option<i64>,
/// The ID of the level below this one in the hierarchy. This property is deprecated, see [Change notice: Removing hierarchy level IDs from next-gen APIs](https://developer.atlassian.com/cloud/jira/platform/change-notice-removing-hierarchy-level-ids-from-next-gen-apis/).
#[serde(rename = "belowLevelId", skip_serializing_if = "Option::is_none")]
pub below_level_id: Option<i64>,
/// The ID of the project configuration. This property is deprecated, see [Change oticen: Removing hierarchy level IDs from next-gen APIs](https://developer.atlassian.com/cloud/jira/platform/change-notice-removing-hierarchy-level-ids-from-next-gen-apis/).
#[serde(rename = "projectConfigurationId", skip_serializing_if = "Option::is_none")]
pub project_configuration_id: Option<i64>,
/// The level of this item in the hierarchy.
#[serde(rename = "level", skip_serializing_if = "Option::is_none")]
pub level: Option<i32>,
/// The issue types available in this hierarchy level.
#[serde(rename = "issueTypeIds", skip_serializing_if = "Option::is_none")]
pub issue_type_ids: Option<Vec<i64>>,
/// The external UUID of the hierarchy level. This property is deprecated, see [Change notice: Removing hierarchy level IDs from next-gen APIs](https://developer.atlassian.com/cloud/jira/platform/change-notice-removing-hierarchy-level-ids-from-next-gen-apis/).
#[serde(rename = "externalUuid", skip_serializing_if = "Option::is_none")]
pub external_uuid: Option<String>,
#[serde(rename = "globalHierarchyLevel", skip_serializing_if = "Option::is_none")]
pub global_hierarchy_level: Option<GlobalHierarchyLevel>,
}
impl SimplifiedHierarchyLevel {
pub fn new() -> SimplifiedHierarchyLevel {
SimplifiedHierarchyLevel {
id: None,
name: None,
above_level_id: None,
below_level_id: None,
project_configuration_id: None,
level: None,
issue_type_ids: None,
external_uuid: None,
global_hierarchy_level: None,
}
}
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum GlobalHierarchyLevel {
#[serde(rename = "SUBTASK")]
SUBTASK,
#[serde(rename = "BASE")]
BASE,
#[serde(rename = "EPIC")]
EPIC,
}
impl Default for GlobalHierarchyLevel {
fn default() -> GlobalHierarchyLevel {
Self::SUBTASK
}
}