jira_api_v2/models/workflow_transition_rule.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/// WorkflowTransitionRule : A workflow transition rule.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct WorkflowTransitionRule {
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", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
22 pub configuration: Option<Option<serde_json::Value>>,
23}
24
25impl WorkflowTransitionRule {
26 /// A workflow transition rule.
27 pub fn new(r#type: String) -> WorkflowTransitionRule {
28 WorkflowTransitionRule {
29 r#type,
30 configuration: None,
31 }
32 }
33}
34