hi_jira2/models/
custom_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
12
13#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
14#[serde(tag = "type")]
15pub enum CustomContextVariable {
16    #[serde(rename="issue")]
17    IssueContextVariable {
18        /// The issue ID.
19        #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
20        id: Option<i64>,
21        /// The issue key.
22        #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
23        key: Option<String>,
24    },
25    #[serde(rename="json")]
26    JsonContextVariable {
27        /// A JSON object containing custom content.
28        #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
29        value: Option<serde_json::Value>,
30    },
31    #[serde(rename="user")]
32    UserContextVariable {
33        /// The account ID of the user.
34        #[serde(rename = "accountId")]
35        account_id: String,
36    },
37}
38
39
40
41