1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* 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
}
}