Skip to main content

orvanta_api/models/
bpmn_migration_result.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/// BpmnMigrationResult : what a migrate call actually moved
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BpmnMigrationResult {
17    #[serde(rename = "from_version")]
18    pub from_version: i64,
19    #[serde(rename = "to_version")]
20    pub to_version: i64,
21    #[serde(rename = "bpmn_flow_path")]
22    pub bpmn_flow_path: String,
23    #[serde(rename = "dry_run")]
24    pub dry_run: bool,
25    /// the instance ids repinned; empty for a dry run
26    #[serde(rename = "migrated")]
27    pub migrated: Vec<uuid::Uuid>,
28}
29
30impl BpmnMigrationResult {
31    /// what a migrate call actually moved
32    pub fn new(from_version: i64, to_version: i64, bpmn_flow_path: String, dry_run: bool, migrated: Vec<uuid::Uuid>) -> BpmnMigrationResult {
33        BpmnMigrationResult {
34            from_version,
35            to_version,
36            bpmn_flow_path,
37            dry_run,
38            migrated,
39        }
40    }
41}
42