/*
* The Jira Cloud platform REST API
*
* Jira Cloud platform REST API documentation
*
* The version of the OpenAPI document: 1001.0.0-SNAPSHOT
* Contact: ecosystem@atlassian.com
* Generated by: https://openapi-generator.tech
*/
/// DefaultWorkflow : Details about the default workflow.
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct DefaultWorkflow {
/// The name of the workflow to set as the default workflow.
#[serde(rename = "workflow")]
pub workflow: String,
/// 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`.
#[serde(rename = "updateDraftIfNeeded", skip_serializing_if = "Option::is_none")]
pub update_draft_if_needed: Option<bool>,
}
impl DefaultWorkflow {
/// Details about the default workflow.
pub fn new(workflow: String) -> DefaultWorkflow {
DefaultWorkflow {
workflow,
update_draft_if_needed: None,
}
}
}