pub struct BpmnMigrationRefusal {
pub error: String,
pub from_version: Option<i64>,
pub to_version: Option<i64>,
pub blockers: Option<Vec<BpmnMigrationBlocker>>,
}Expand description
BpmnMigrationRefusal : The 400 body when the contract refuses a swap. Same envelope shape as deploy-time BPMN validation (#743): error is a readable sentence for a client that reads one field, blockers carries the structure a UI needs to mark the offending shapes.
Fields§
§error: String§from_version: Option<i64>§to_version: Option<i64>§blockers: Option<Vec<BpmnMigrationBlocker>>Implementations§
Source§impl BpmnMigrationRefusal
impl BpmnMigrationRefusal
Sourcepub fn new(error: String) -> BpmnMigrationRefusal
pub fn new(error: String) -> BpmnMigrationRefusal
The 400 body when the contract refuses a swap. Same envelope shape as deploy-time BPMN validation (#743): error is a readable sentence for a client that reads one field, blockers carries the structure a UI needs to mark the offending shapes.
Trait Implementations§
Source§impl Clone for BpmnMigrationRefusal
impl Clone for BpmnMigrationRefusal
Source§fn clone(&self) -> BpmnMigrationRefusal
fn clone(&self) -> BpmnMigrationRefusal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BpmnMigrationRefusal
impl Debug for BpmnMigrationRefusal
Source§impl Default for BpmnMigrationRefusal
impl Default for BpmnMigrationRefusal
Source§fn default() -> BpmnMigrationRefusal
fn default() -> BpmnMigrationRefusal
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BpmnMigrationRefusal
impl<'de> Deserialize<'de> for BpmnMigrationRefusal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BpmnMigrationRefusal
impl PartialEq for BpmnMigrationRefusal
Source§impl Serialize for BpmnMigrationRefusal
impl Serialize for BpmnMigrationRefusal
impl StructuralPartialEq for BpmnMigrationRefusal
Auto Trait Implementations§
impl Freeze for BpmnMigrationRefusal
impl RefUnwindSafe for BpmnMigrationRefusal
impl Send for BpmnMigrationRefusal
impl Sync for BpmnMigrationRefusal
impl Unpin for BpmnMigrationRefusal
impl UnsafeUnpin for BpmnMigrationRefusal
impl UnwindSafe for BpmnMigrationRefusal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more