Documentation
/*
 * 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
 */

/// WorkflowId : Properties that identify a workflow.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct WorkflowId {
    /// The name of the workflow.
    #[serde(rename = "name")]
    pub name: String,
    /// Whether the workflow is in the draft state.
    #[serde(rename = "draft")]
    pub draft: bool,
}

impl WorkflowId {
    /// Properties that identify a workflow.
    pub fn new(name: String, draft: bool) -> WorkflowId {
        WorkflowId {
            name,
            draft,
        }
    }
}