jira_api_v2/models/
jira_expressions_complexity_bean.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct JiraExpressionsComplexityBean {
16    /// The number of steps it took to evaluate the expression, where a step is a high-level operation performed by the expression. A step is an operation such as arithmetic, accessing a property, accessing a context variable, or calling a function.
17    #[serde(rename = "steps")]
18    pub steps: Box<models::JiraExpressionsComplexityValueBean>,
19    /// The number of expensive operations executed while evaluating the expression. Expensive operations are those that load additional data, such as entity properties, comments, or custom fields.
20    #[serde(rename = "expensiveOperations")]
21    pub expensive_operations: Box<models::JiraExpressionsComplexityValueBean>,
22    /// The number of Jira REST API beans returned in the response.
23    #[serde(rename = "beans")]
24    pub beans: Box<models::JiraExpressionsComplexityValueBean>,
25    /// The number of primitive values returned in the response.
26    #[serde(rename = "primitiveValues")]
27    pub primitive_values: Box<models::JiraExpressionsComplexityValueBean>,
28}
29
30impl JiraExpressionsComplexityBean {
31    pub fn new(steps: models::JiraExpressionsComplexityValueBean, expensive_operations: models::JiraExpressionsComplexityValueBean, beans: models::JiraExpressionsComplexityValueBean, primitive_values: models::JiraExpressionsComplexityValueBean) -> JiraExpressionsComplexityBean {
32        JiraExpressionsComplexityBean {
33            steps: Box::new(steps),
34            expensive_operations: Box::new(expensive_operations),
35            beans: Box::new(beans),
36            primitive_values: Box::new(primitive_values),
37        }
38    }
39}
40