orvanta-api 1.7.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: 1.7.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

/// BpmnIncidentKind : why a process parked in ProcessLifecycle::Incident, tagged by `type`
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BpmnIncidentKind {
    #[serde(rename = "type")]
    pub r#type: Type,
}

impl BpmnIncidentKind {
    /// why a process parked in ProcessLifecycle::Incident, tagged by `type`
    pub fn new(r#type: Type) -> BpmnIncidentKind {
        BpmnIncidentKind {
            r#type,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "activity_failed")]
    ActivityFailed,
    #[serde(rename = "join_starved")]
    JoinStarved,
    #[serde(rename = "no_outgoing_path")]
    NoOutgoingPath,
    #[serde(rename = "unsupported_element")]
    UnsupportedElement,
    #[serde(rename = "engine_error")]
    EngineError,
    #[serde(rename = "stranded")]
    Stranded,
}

impl Default for Type {
    fn default() -> Type {
        Self::ActivityFailed
    }
}