jira_api_v2/models/workflow_transition_property.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/// WorkflowTransitionProperty : Details about the server Jira is running on.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct WorkflowTransitionProperty {
17 /// The key of the transition property. Also known as the name of the transition property.
18 #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
19 pub key: Option<String>,
20 /// The value of the transition property.
21 #[serde(rename = "value")]
22 pub value: String,
23 /// The ID of the transition property.
24 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
25 pub id: Option<String>,
26}
27
28impl WorkflowTransitionProperty {
29 /// Details about the server Jira is running on.
30 pub fn new(value: String) -> WorkflowTransitionProperty {
31 WorkflowTransitionProperty {
32 key: None,
33 value,
34 id: None,
35 }
36 }
37}
38