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};

/// CmmnIncidentKind : Why a case is carrying an incident.  - `cycle_limit` --- the model is legally non-terminating (or close   enough), so re-pulling would loop again. - `illegal_trigger` --- an external trigger named an instance or a   transition the engine refused. Recorded rather than dropped, so a bad   API call is visible. - `engine_error` --- any other failure inside the I/O shell. - `stranded` --- a step exited without completing or re-suspending the   queue row. Always an engine bug. 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CmmnIncidentKind {
    #[serde(rename = "type")]
    pub r#type: Type,
}

impl CmmnIncidentKind {
    /// Why a case is carrying an incident.  - `cycle_limit` --- the model is legally non-terminating (or close   enough), so re-pulling would loop again. - `illegal_trigger` --- an external trigger named an instance or a   transition the engine refused. Recorded rather than dropped, so a bad   API call is visible. - `engine_error` --- any other failure inside the I/O shell. - `stranded` --- a step exited without completing or re-suspending the   queue row. Always an engine bug. 
    pub fn new(r#type: Type) -> CmmnIncidentKind {
        CmmnIncidentKind {
            r#type,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "cycle_limit")]
    CycleLimit,
    #[serde(rename = "illegal_trigger")]
    IllegalTrigger,
    #[serde(rename = "engine_error")]
    EngineError,
    #[serde(rename = "stranded")]
    Stranded,
}

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