jira_api_v2/models/
workflow_transition.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/// WorkflowTransition : A workflow transition.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct WorkflowTransition {
17    /// The transition ID.
18    #[serde(rename = "id")]
19    pub id: i32,
20    /// The transition name.
21    #[serde(rename = "name")]
22    pub name: String,
23}
24
25impl WorkflowTransition {
26    /// A workflow transition.
27    pub fn new(id: i32, name: String) -> WorkflowTransition {
28        WorkflowTransition {
29            id,
30            name,
31        }
32    }
33}
34