pub struct BpmnMappingRefusal {
pub error: String,
pub from_version: Option<i64>,
pub to_version: Option<i64>,
pub blockers: Option<Vec<BpmnMappingBlocker>>,
}Expand description
BpmnMappingRefusal : The 400 body when the mapped contract refuses a request (#925). Same envelope as BpmnMigrationRefusal on purpose, so one client-side renderer handles both: error is a readable sentence for a client that reads one field, blockers carries the rule number, the rendered sentence and the rule’s own fields, which is what a UI needs to mark the offending shapes without knowing the discriminant names.
Fields§
§error: String§from_version: Option<i64>§to_version: Option<i64>§blockers: Option<Vec<BpmnMappingBlocker>>Implementations§
Source§impl BpmnMappingRefusal
impl BpmnMappingRefusal
Sourcepub fn new(error: String) -> BpmnMappingRefusal
pub fn new(error: String) -> BpmnMappingRefusal
The 400 body when the mapped contract refuses a request (#925). Same envelope as BpmnMigrationRefusal on purpose, so one client-side renderer handles both: error is a readable sentence for a client that reads one field, blockers carries the rule number, the rendered sentence and the rule’s own fields, which is what a UI needs to mark the offending shapes without knowing the discriminant names.
Trait Implementations§
Source§impl Clone for BpmnMappingRefusal
impl Clone for BpmnMappingRefusal
Source§fn clone(&self) -> BpmnMappingRefusal
fn clone(&self) -> BpmnMappingRefusal
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more