orvanta-api 3.2.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.2.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

/// BpmnMigrationPlanCheck : Whether a mapping document holds for a version pair, and the substitution it resolves to. Nothing is written by the operations that return this.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BpmnMigrationPlanCheck {
    #[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,
    /// the mapping document holds against this pair
    #[serde(rename = "eligible")]
    pub eligible: bool,
    /// the resolved plan rewrites nothing, so the pair is identity-migratable and `process_status` must not be touched
    #[serde(rename = "identity")]
    pub identity: bool,
    /// this migration can be performed with what exists today. Equal to `identity` until the engine-side applier lands -- a non-identity plan is validated but not yet applicable.
    #[serde(rename = "executable_today")]
    pub executable_today: bool,
    #[serde(rename = "plan", skip_serializing_if = "Option::is_none")]
    pub plan: Option<Box<models::BpmnMigrationPlan>>,
    #[serde(rename = "blockers")]
    pub blockers: Vec<models::BpmnMappingBlocker>,
}

impl BpmnMigrationPlanCheck {
    /// Whether a mapping document holds for a version pair, and the substitution it resolves to. Nothing is written by the operations that return this.
    pub fn new(from_version: i64, to_version: i64, bpmn_flow_path: String, eligible: bool, identity: bool, executable_today: bool, blockers: Vec<models::BpmnMappingBlocker>) -> BpmnMigrationPlanCheck {
        BpmnMigrationPlanCheck {
            from_version,
            to_version,
            bpmn_flow_path,
            eligible,
            identity,
            executable_today,
            plan: None,
            blockers,
        }
    }
}