jira_api_v2/models/hierarchy.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/// Hierarchy : The project issue type hierarchy.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Hierarchy {
17 /// The ID of the base 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/).
18 #[serde(rename = "baseLevelId", skip_serializing_if = "Option::is_none")]
19 pub base_level_id: Option<i64>,
20 /// Details about the hierarchy level.
21 #[serde(rename = "levels", skip_serializing_if = "Option::is_none")]
22 pub levels: Option<Vec<models::HierarchyLevel>>,
23}
24
25impl Hierarchy {
26 /// The project issue type hierarchy.
27 pub fn new() -> Hierarchy {
28 Hierarchy {
29 base_level_id: None,
30 levels: None,
31 }
32 }
33}
34