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
/*
* Orvanta API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 3.1.0
* Contact: contact@orvanta.cloud
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// DelegateOccurrence : One place a delegate key is referenced from.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DelegateOccurrence {
/// The `bpmn_flow.path` the reference was read from.
#[serde(rename = "flow_path")]
pub flow_path: String,
/// The `serviceTask` element id -- what an editor should highlight.
#[serde(rename = "element_id")]
pub element_id: String,
/// True when the reference comes from a `draft_only` definition (an imported-but-not-yet-deployable estate) rather than a deployed one.
#[serde(rename = "draft_only")]
pub draft_only: bool,
}
impl DelegateOccurrence {
/// One place a delegate key is referenced from.
pub fn new(flow_path: String, element_id: String, draft_only: bool) -> DelegateOccurrence {
DelegateOccurrence {
flow_path,
element_id,
draft_only,
}
}
}