orvanta_api/models/delegate_occurrence.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: 3.2.0
7 * Contact: contact@orvanta.cloud
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// DelegateOccurrence : One place a delegate key is referenced from.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DelegateOccurrence {
17 /// The `bpmn_flow.path` the reference was read from.
18 #[serde(rename = "flow_path")]
19 pub flow_path: String,
20 /// The `serviceTask` element id -- what an editor should highlight.
21 #[serde(rename = "element_id")]
22 pub element_id: String,
23 /// True when the reference comes from a `draft_only` definition (an imported-but-not-yet-deployable estate) rather than a deployed one.
24 #[serde(rename = "draft_only")]
25 pub draft_only: bool,
26}
27
28impl DelegateOccurrence {
29 /// One place a delegate key is referenced from.
30 pub fn new(flow_path: String, element_id: String, draft_only: bool) -> DelegateOccurrence {
31 DelegateOccurrence {
32 flow_path,
33 element_id,
34 draft_only,
35 }
36 }
37}
38