jira_api_v2/models/
workflow_id.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/// WorkflowId : Properties that identify a workflow.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct WorkflowId {
17    /// The name of the workflow.
18    #[serde(rename = "name")]
19    pub name: String,
20    /// Whether the workflow is in the draft state.
21    #[serde(rename = "draft")]
22    pub draft: bool,
23}
24
25impl WorkflowId {
26    /// Properties that identify a workflow.
27    pub fn new(name: String, draft: bool) -> WorkflowId {
28        WorkflowId {
29            name,
30            draft,
31        }
32    }
33}
34