hi_jira2/models/
issue_context_variable.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
11/// IssueContextVariable : An [issue](https://developer.atlassian.com/cloud/jira/platform/jira-expressions-type-reference#issue) specified by ID or key. All the fields of the issue object are available in the Jira expression.
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct IssueContextVariable {
17    /// Type of custom context variable.
18    #[serde(rename = "type")]
19    pub _type: String,
20    /// The issue ID.
21    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
22    pub id: Option<i64>,
23    /// The issue key.
24    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
25    pub key: Option<String>,
26}
27
28impl IssueContextVariable {
29    /// An [issue](https://developer.atlassian.com/cloud/jira/platform/jira-expressions-type-reference#issue) specified by ID or key. All the fields of the issue object are available in the Jira expression.
30    pub fn new(_type: String) -> IssueContextVariable {
31        IssueContextVariable {
32            _type,
33            id: None,
34            key: None,
35        }
36    }
37}
38
39