Skip to main content

orvanta_api/models/
bpmn_scope.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.6.0
7 * Contact: contact@orvanta.cloud
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// BpmnScope : a sub-process activation
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BpmnScope {
17    #[serde(rename = "id")]
18    pub id: uuid::Uuid,
19    #[serde(rename = "element_id")]
20    pub element_id: String,
21    #[serde(rename = "parent_scope_id", skip_serializing_if = "Option::is_none")]
22    pub parent_scope_id: Option<uuid::Uuid>,
23    #[serde(rename = "variables", skip_serializing_if = "Option::is_none")]
24    pub variables: Option<std::collections::HashMap<String, serde_json::Value>>,
25    #[serde(rename = "activation")]
26    pub activation: i32,
27}
28
29impl BpmnScope {
30    /// a sub-process activation
31    pub fn new(id: uuid::Uuid, element_id: String, activation: i32) -> BpmnScope {
32        BpmnScope {
33            id,
34            element_id,
35            parent_scope_id: None,
36            variables: None,
37            activation,
38        }
39    }
40}
41