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
/*
* 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};
/// CmmnWaitingItem : One plan-item instance parked for an external actor, and what it accepts.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CmmnWaitingItem {
/// Index into `CmmnCaseInstance.instances`.
#[serde(rename = "instance")]
pub instance: i32,
#[serde(rename = "plan_item_id")]
pub plan_item_id: String,
#[serde(rename = "state")]
pub state: models::CmmnPlanItemState,
#[serde(rename = "accepts")]
pub accepts: Vec<models::CmmnPlanItemTransition>,
}
impl CmmnWaitingItem {
/// One plan-item instance parked for an external actor, and what it accepts.
pub fn new(instance: i32, plan_item_id: String, state: models::CmmnPlanItemState, accepts: Vec<models::CmmnPlanItemTransition>) -> CmmnWaitingItem {
CmmnWaitingItem {
instance,
plan_item_id,
state,
accepts,
}
}
}