hi_jira2/models/
user_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/// UserContextVariable : A [user](https://developer.atlassian.com/cloud/jira/platform/jira-expressions-type-reference#user) specified as an Atlassian account ID.
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct UserContextVariable {
17    /// Type of custom context variable.
18    #[serde(rename = "type")]
19    pub _type: String,
20    /// The account ID of the user.
21    #[serde(rename = "accountId")]
22    pub account_id: String,
23}
24
25impl UserContextVariable {
26    /// A [user](https://developer.atlassian.com/cloud/jira/platform/jira-expressions-type-reference#user) specified as an Atlassian account ID.
27    pub fn new(_type: String, account_id: String) -> UserContextVariable {
28        UserContextVariable {
29            _type,
30            account_id,
31        }
32    }
33}
34
35