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
/*
* 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
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct JiraExpressionEvalContextBean {
/// The issue that is available under the `issue` variable when evaluating the expression.
#[serde(rename = "issue", skip_serializing_if = "Option::is_none")]
pub issue: Option<Box<models::IdOrKeyBean>>,
/// The collection of issues that is available under the `issues` variable when evaluating the expression.
#[serde(rename = "issues", skip_serializing_if = "Option::is_none")]
pub issues: Option<Box<models::JexpIssues>>,
/// The project that is available under the `project` variable when evaluating the expression.
#[serde(rename = "project", skip_serializing_if = "Option::is_none")]
pub project: Option<Box<models::IdOrKeyBean>>,
/// The ID of the sprint that is available under the `sprint` variable when evaluating the expression.
#[serde(rename = "sprint", skip_serializing_if = "Option::is_none")]
pub sprint: Option<i64>,
/// The ID of the board that is available under the `board` variable when evaluating the expression.
#[serde(rename = "board", skip_serializing_if = "Option::is_none")]
pub board: Option<i64>,
/// The ID of the service desk that is available under the `serviceDesk` variable when evaluating the expression.
#[serde(rename = "serviceDesk", skip_serializing_if = "Option::is_none")]
pub service_desk: Option<i64>,
/// The ID of the customer request that is available under the `customerRequest` variable when evaluating the expression. This is the same as the ID of the underlying Jira issue, but the customer request context variable will have a different type.
#[serde(rename = "customerRequest", skip_serializing_if = "Option::is_none")]
pub customer_request: Option<i64>,
}
impl JiraExpressionEvalContextBean {
pub fn new() -> JiraExpressionEvalContextBean {
JiraExpressionEvalContextBean {
issue: None,
issues: None,
project: None,
sprint: None,
board: None,
service_desk: None,
customer_request: None,
}
}
}