jira_api_v2/models/jira_expression_result.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/// JiraExpressionResult : The result of evaluating a Jira expression.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct JiraExpressionResult {
17 /// The value of the evaluated expression. It may be a primitive JSON value or a Jira REST API object. (Some expressions do not produce any meaningful results—for example, an expression that returns a lambda function—if that's the case a simple string representation is returned. These string representations should not be relied upon and may change without notice.)
18 #[serde(rename = "value", deserialize_with = "Option::deserialize")]
19 pub value: Option<serde_json::Value>,
20 /// Contains various characteristics of the performed expression evaluation.
21 #[serde(rename = "meta", skip_serializing_if = "Option::is_none")]
22 pub meta: Option<Box<models::JiraExpressionEvaluationMetaDataBean>>,
23}
24
25impl JiraExpressionResult {
26 /// The result of evaluating a Jira expression.
27 pub fn new(value: Option<serde_json::Value>) -> JiraExpressionResult {
28 JiraExpressionResult {
29 value,
30 meta: None,
31 }
32 }
33}
34