orvanta-api 3.0.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 3.0.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// BpmnMigrationResult : what a migrate call actually moved
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BpmnMigrationResult {
    #[serde(rename = "from_version")]
    pub from_version: i64,
    #[serde(rename = "to_version")]
    pub to_version: i64,
    #[serde(rename = "bpmn_flow_path")]
    pub bpmn_flow_path: String,
    #[serde(rename = "dry_run")]
    pub dry_run: bool,
    /// the instance ids repinned; empty for a dry run
    #[serde(rename = "migrated")]
    pub migrated: Vec<uuid::Uuid>,
}

impl BpmnMigrationResult {
    /// what a migrate call actually moved
    pub fn new(from_version: i64, to_version: i64, bpmn_flow_path: String, dry_run: bool, migrated: Vec<uuid::Uuid>) -> BpmnMigrationResult {
        BpmnMigrationResult {
            from_version,
            to_version,
            bpmn_flow_path,
            dry_run,
            migrated,
        }
    }
}