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
/*
* 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 IssueTypeCreateBean {
/// The unique name for the issue type. The maximum length is 60 characters.
#[serde(rename = "name")]
pub name: String,
/// The description of the issue type.
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
/// Deprecated. Use `hierarchyLevel` instead. See the [deprecation notice](https://community.developer.atlassian.com/t/deprecation-of-the-epic-link-parent-link-and-other-related-fields-in-rest-apis-and-webhooks/54048) for details. Whether the issue type is `subtype` or `standard`. Defaults to `standard`.
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
pub _type: Option<Type>,
/// The hierarchy level of the issue type. Use: * `-1` for Subtask. * `0` for Base. Defaults to `0`.
#[serde(rename = "hierarchyLevel", skip_serializing_if = "Option::is_none")]
pub hierarchy_level: Option<i32>,
}
impl IssueTypeCreateBean {
pub fn new(name: String) -> IssueTypeCreateBean {
IssueTypeCreateBean {
name,
description: None,
_type: None,
hierarchy_level: None,
}
}
}
/// Deprecated. Use `hierarchyLevel` instead. See the [deprecation notice](https://community.developer.atlassian.com/t/deprecation-of-the-epic-link-parent-link-and-other-related-fields-in-rest-apis-and-webhooks/54048) for details. Whether the issue type is `subtype` or `standard`. Defaults to `standard`.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
#[serde(rename = "subtask")]
Subtask,
#[serde(rename = "standard")]
Standard,
}
impl Default for Type {
fn default() -> Type {
Self::Subtask
}
}