hi_jira2/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
11/// WorkflowSimpleCondition : A workflow transition rule condition. This object returns `nodeType` as `simple`.
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct WorkflowSimpleCondition {
17    /// The type of the transition rule.
18    #[serde(rename = "type")]
19    pub _type: String,
20    /// EXPERIMENTAL. The configuration of the transition rule.
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 rule condition. This object returns `nodeType` as `simple`.
29    pub fn new(_type: String, node_type: String) -> WorkflowSimpleCondition {
30        WorkflowSimpleCondition {
31            _type,
32            configuration: None,
33            node_type,
34        }
35    }
36}
37
38