jira_api_v2/models/
workflow_condition_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/// WorkflowConditionBean : The workflow conditions tree.
15#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
16#[serde(tag = "nodeType")]
17pub enum WorkflowConditionBean {
18    #[serde(rename="simple")]
19    Simple(Box<models::WorkflowSimpleCondition>),
20    #[serde(rename="compound")]
21    Compound(Box<models::WorkflowCompoundCondition>),
22}
23
24impl Default for WorkflowConditionBean {
25    fn default() -> Self {
26        Self::Simple(Default::default())
27    }
28}
29
30/// The conditions operator.
31#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
32pub enum Operator {
33    #[serde(rename = "AND")]
34    And,
35    #[serde(rename = "OR")]
36    Or,
37}
38
39impl Default for Operator {
40    fn default() -> Operator {
41        Self::And
42    }
43}
44