jira_api_v2/models/
default_workflow.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/// DefaultWorkflow : Details about the default workflow.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DefaultWorkflow {
17    /// The name of the workflow to set as the default workflow.
18    #[serde(rename = "workflow")]
19    pub workflow: String,
20    /// Whether a draft workflow scheme is created or updated when updating an active workflow scheme. The draft is updated with the new default workflow. Defaults to `false`.
21    #[serde(rename = "updateDraftIfNeeded", skip_serializing_if = "Option::is_none")]
22    pub update_draft_if_needed: Option<bool>,
23}
24
25impl DefaultWorkflow {
26    /// Details about the default workflow.
27    pub fn new(workflow: String) -> DefaultWorkflow {
28        DefaultWorkflow {
29            workflow,
30            update_draft_if_needed: None,
31        }
32    }
33}
34