orvanta-api 6.5.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 6.5.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

/// CmmnDefinitionKind : What kind of thing the plan item's definition is.  `orvanta_cmmn::DefinitionKind` carries one further, payload-bearing variant --- `Unsupported(name)`, for a recognised CMMN definition outside the GA allowlist. It cannot appear here: admission turns it into a named deploy-time refusal, so a document containing one never reaches a running case. Declared as a flat enum for that reason. 
/// What kind of thing the plan item's definition is.  `orvanta_cmmn::DefinitionKind` carries one further, payload-bearing variant --- `Unsupported(name)`, for a recognised CMMN definition outside the GA allowlist. It cannot appear here: admission turns it into a named deploy-time refusal, so a document containing one never reaches a running case. Declared as a flat enum for that reason. 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum CmmnDefinitionKind {
    #[serde(rename = "Stage")]
    Stage,
    #[serde(rename = "PlanFragment")]
    PlanFragment,
    #[serde(rename = "Task")]
    Task,
    #[serde(rename = "HumanTask")]
    HumanTask,
    #[serde(rename = "ProcessTask")]
    ProcessTask,
    #[serde(rename = "CaseTask")]
    CaseTask,
    #[serde(rename = "DecisionTask")]
    DecisionTask,
    #[serde(rename = "Milestone")]
    Milestone,
    #[serde(rename = "UserEventListener")]
    UserEventListener,
    #[serde(rename = "TimerEventListener")]
    TimerEventListener,

}

impl std::fmt::Display for CmmnDefinitionKind {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Stage => write!(f, "Stage"),
            Self::PlanFragment => write!(f, "PlanFragment"),
            Self::Task => write!(f, "Task"),
            Self::HumanTask => write!(f, "HumanTask"),
            Self::ProcessTask => write!(f, "ProcessTask"),
            Self::CaseTask => write!(f, "CaseTask"),
            Self::DecisionTask => write!(f, "DecisionTask"),
            Self::Milestone => write!(f, "Milestone"),
            Self::UserEventListener => write!(f, "UserEventListener"),
            Self::TimerEventListener => write!(f, "TimerEventListener"),
        }
    }
}

impl Default for CmmnDefinitionKind {
    fn default() -> CmmnDefinitionKind {
        Self::Stage
    }
}