Skip to main content

orvanta_api/models/
bpmn_migration_mapping_activities_inner.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct BpmnMigrationMappingActivitiesInner {
16    /// an element id in the source version
17    #[serde(rename = "from")]
18    pub from: String,
19    /// an element id in the target version
20    #[serde(rename = "to")]
21    pub to: String,
22}
23
24impl BpmnMigrationMappingActivitiesInner {
25    pub fn new(from: String, to: String) -> BpmnMigrationMappingActivitiesInner {
26        BpmnMigrationMappingActivitiesInner {
27            from,
28            to,
29        }
30    }
31}
32