jira_api_v2/models/jira_expression_for_analysis.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
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// JiraExpressionForAnalysis : Details of Jira expressions for analysis.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct JiraExpressionForAnalysis {
17 /// The list of Jira expressions to analyse.
18 #[serde(rename = "expressions")]
19 pub expressions: Vec<String>,
20 /// Context variables and their types. The type checker assumes that [common context variables](https://developer.atlassian.com/cloud/jira/platform/jira-expressions/#context-variables), such as `issue` or `project`, are available in context and sets their type. Use this property to override the default types or provide details of new variables.
21 #[serde(rename = "contextVariables", skip_serializing_if = "Option::is_none")]
22 pub context_variables: Option<std::collections::HashMap<String, String>>,
23}
24
25impl JiraExpressionForAnalysis {
26 /// Details of Jira expressions for analysis.
27 pub fn new(expressions: Vec<String>) -> JiraExpressionForAnalysis {
28 JiraExpressionForAnalysis {
29 expressions,
30 context_variables: None,
31 }
32 }
33}
34