orvanta_api/models/
bpmn_migration_plan_check.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BpmnMigrationPlanCheck {
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 = "eligible")]
25 pub eligible: bool,
26 #[serde(rename = "identity")]
28 pub identity: bool,
29 #[serde(rename = "executable_today")]
31 pub executable_today: bool,
32 #[serde(rename = "plan", skip_serializing_if = "Option::is_none")]
33 pub plan: Option<Box<models::BpmnMigrationPlan>>,
34 #[serde(rename = "blockers")]
35 pub blockers: Vec<models::BpmnMappingBlocker>,
36}
37
38impl BpmnMigrationPlanCheck {
39 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 {
41 BpmnMigrationPlanCheck {
42 from_version,
43 to_version,
44 bpmn_flow_path,
45 eligible,
46 identity,
47 executable_today,
48 plan: None,
49 blockers,
50 }
51 }
52}
53