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};

/// BpmnMigrationCheck : Whether an instance pinned to `from_version` may be repinned to `to_version`, and if not, why. A property of the pair, not of an instance.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BpmnMigrationCheck {
    #[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 = "eligible")]
    pub eligible: bool,
    #[serde(rename = "blockers")]
    pub blockers: Vec<models::BpmnMigrationBlocker>,
}

impl BpmnMigrationCheck {
    /// Whether an instance pinned to `from_version` may be repinned to `to_version`, and if not, why. A property of the pair, not of an instance.
    pub fn new(from_version: i64, to_version: i64, bpmn_flow_path: String, eligible: bool, blockers: Vec<models::BpmnMigrationBlocker>) -> BpmnMigrationCheck {
        BpmnMigrationCheck {
            from_version,
            to_version,
            bpmn_flow_path,
            eligible,
            blockers,
        }
    }
}