jira_v3_openapi 1.6.0

Jira Cloud platform REST API lib (OpenAPI document version: 1001.0.0-SNAPSHOT-af42c50d50804c2f1b8ad4bb80d52c53890867e2)
Documentation
/*
 * The Jira Cloud platform REST API
 *
 * Jira Cloud platform REST API documentation
 *
 * The version of the OpenAPI document: 1001.0.0-SNAPSHOT-af42c50d50804c2f1b8ad4bb80d52c53890867e2
 * Contact: ecosystem@atlassian.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// WorkflowPreview : Details of a workflow.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct WorkflowPreview {
    /// The description of the workflow.
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    /// The ID of the workflow.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[serde(rename = "loopedTransitionContainerLayout", skip_serializing_if = "Option::is_none")]
    pub looped_transition_container_layout: Option<Box<models::WorkflowPreviewLayout>>,
    /// The name of the workflow.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// The project and issue type context for this workflow query.
    #[serde(rename = "queryContext", skip_serializing_if = "Option::is_none")]
    pub query_context: Option<Vec<models::ProjectIssueTypeQueryContext>>,
    #[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
    pub scope: Option<Box<models::WorkflowPreviewScope>>,
    #[serde(rename = "startPointLayout", skip_serializing_if = "Option::is_none")]
    pub start_point_layout: Option<Box<models::WorkflowPreviewLayout>>,
    /// The statuses referenced in this workflow.
    #[serde(rename = "statuses", skip_serializing_if = "Option::is_none")]
    pub statuses: Option<Vec<models::WorkflowPreviewStatus>>,
    /// The transitions of the workflow.
    #[serde(rename = "transitions", skip_serializing_if = "Option::is_none")]
    pub transitions: Option<Vec<models::TransitionPreview>>,
    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
    pub version: Option<Box<models::WorkflowDocumentVersionBean>>,
}

impl WorkflowPreview {
    /// Details of a workflow.
    pub fn new() -> WorkflowPreview {
        WorkflowPreview {
            description: None,
            id: None,
            looped_transition_container_layout: None,
            name: None,
            query_context: None,
            scope: None,
            start_point_layout: None,
            statuses: None,
            transitions: None,
            version: None,
        }
    }
}