jira_api_v2/models/
workflow_simple_condition.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/// WorkflowSimpleCondition : A workflow transition condition rule.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct WorkflowSimpleCondition {
17    /// The type of the transition rule.
18    #[serde(rename = "type")]
19    pub r#type: String,
20    /// The configuration of the transition rule. This is currently returned only for some of the rule types. Availability of this property is subject to change.
21    #[serde(rename = "configuration", skip_serializing_if = "Option::is_none")]
22    pub configuration: Option<serde_json::Value>,
23    #[serde(rename = "nodeType")]
24    pub node_type: String,
25}
26
27impl WorkflowSimpleCondition {
28    /// A workflow transition condition rule.
29    pub fn new(r#type: String, node_type: String) -> WorkflowSimpleCondition {
30        WorkflowSimpleCondition {
31            r#type,
32            configuration: None,
33            node_type,
34        }
35    }
36}
37