1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* 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,
}
}
}