jira_api_v2/models/
jira_expressions_complexity_value_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 JiraExpressionsComplexityValueBean {
16    /// The complexity value of the current expression.
17    #[serde(rename = "value")]
18    pub value: i32,
19    /// The maximum allowed complexity. The evaluation will fail if this value is exceeded.
20    #[serde(rename = "limit")]
21    pub limit: i32,
22}
23
24impl JiraExpressionsComplexityValueBean {
25    pub fn new(value: i32, limit: i32) -> JiraExpressionsComplexityValueBean {
26        JiraExpressionsComplexityValueBean {
27            value,
28            limit,
29        }
30    }
31}
32