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

/// CmmnCaseLifecycle : The **job-level** lifecycle, as distinct from `CmmnCaseInstance.state` (the case's own state, which the engine owns). The two can disagree in exactly one direction and it is deliberate: a case whose state is `active` may have a lifecycle of `incident`, which records \"the engine could not proceed\" without inventing an engine state CMMN does not have. An incident parks the case for an operator; it does not shut the run down. 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CmmnCaseLifecycle {
    #[serde(rename = "type")]
    pub r#type: Type,
}

impl CmmnCaseLifecycle {
    /// The **job-level** lifecycle, as distinct from `CmmnCaseInstance.state` (the case's own state, which the engine owns). The two can disagree in exactly one direction and it is deliberate: a case whose state is `active` may have a lifecycle of `incident`, which records \"the engine could not proceed\" without inventing an engine state CMMN does not have. An incident parks the case for an operator; it does not shut the run down. 
    pub fn new(r#type: Type) -> CmmnCaseLifecycle {
        CmmnCaseLifecycle {
            r#type,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "running")]
    Running,
    #[serde(rename = "completed")]
    Completed,
    #[serde(rename = "incident")]
    Incident,
}

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