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
/*
* Orvanta API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.5.0
* Contact: contact@orvanta.cloud
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// BpmnIncident : a parked-process error the operator must see and can retry
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BpmnIncident {
#[serde(rename = "kind")]
pub kind: Box<models::BpmnIncidentKind>,
#[serde(rename = "activity_id", skip_serializing_if = "Option::is_none")]
pub activity_id: Option<String>,
#[serde(rename = "message", skip_serializing_if = "Option::is_none")]
pub message: Option<String>,
/// the original failed child job's id -- this is the id used by POST .../incidents/{job_id}/retry
#[serde(rename = "job", skip_serializing_if = "Option::is_none")]
pub job: Option<uuid::Uuid>,
#[serde(rename = "at")]
pub at: String,
}
impl BpmnIncident {
/// a parked-process error the operator must see and can retry
pub fn new(kind: models::BpmnIncidentKind, at: String) -> BpmnIncident {
BpmnIncident {
kind: Box::new(kind),
activity_id: None,
message: None,
job: None,
at,
}
}
}