Skip to main content

orvanta_api/models/
bpmn_activity_run_state.rs

1/*
2 * Orvanta API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.7.0
7 * Contact: contact@orvanta.cloud
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// BpmnActivityRunState : lifecycle of a single dispatched activity, tagged by `type`
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BpmnActivityRunState {
17    #[serde(rename = "type")]
18    pub r#type: Type,
19}
20
21impl BpmnActivityRunState {
22    /// lifecycle of a single dispatched activity, tagged by `type`
23    pub fn new(r#type: Type) -> BpmnActivityRunState {
24        BpmnActivityRunState {
25            r#type,
26        }
27    }
28}
29/// 
30#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
31pub enum Type {
32    #[serde(rename = "started")]
33    Started,
34    #[serde(rename = "completed")]
35    Completed,
36    #[serde(rename = "failed")]
37    Failed,
38}
39
40impl Default for Type {
41    fn default() -> Type {
42        Self::Started
43    }
44}
45