Skip to main content

orvanta_api/models/
bpmn_migration_mapping.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/// BpmnMigrationMapping : An operator's assertion about how a source version's elements correspond to a target version's (#925). Elements not named here are implicitly mapped to their own id -- and are then subject to every rule an explicit mapping is. 1:1 only: 1:N is deliberately not representable (it would require the engine to synthesize tokens, and inside an inclusive region the `JoinState` that `inclusive_join` never creates), and N:1 is representable only so that it can be refused with a reason.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BpmnMigrationMapping {
17    #[serde(rename = "activities", skip_serializing_if = "Option::is_none")]
18    pub activities: Option<Vec<models::BpmnMigrationMappingActivitiesInner>>,
19}
20
21impl BpmnMigrationMapping {
22    /// An operator's assertion about how a source version's elements correspond to a target version's (#925). Elements not named here are implicitly mapped to their own id -- and are then subject to every rule an explicit mapping is. 1:1 only: 1:N is deliberately not representable (it would require the engine to synthesize tokens, and inside an inclusive region the `JoinState` that `inclusive_join` never creates), and N:1 is representable only so that it can be refused with a reason.
23    pub fn new() -> BpmnMigrationMapping {
24        BpmnMigrationMapping {
25            activities: None,
26        }
27    }
28}
29