pub enum SchemaError {
TypeNotFound {
type_id: StateTypeId,
},
TransitionNotFound {
transition_id: u16,
},
InputTypeMismatch {
transition_id: u16,
expected: Vec<StateTypeId>,
actual: Vec<StateTypeId>,
},
OutputTypeMismatch {
transition_id: u16,
expected: Vec<StateTypeId>,
actual: Vec<StateTypeId>,
},
}Expand description
Schema validation errors
Variants§
TypeNotFound
Type ID not defined in schema
Fields
§
type_id: StateTypeIdTransitionNotFound
Transition ID not defined in schema
InputTypeMismatch
Transition input types don’t match schema definition
OutputTypeMismatch
Transition output types don’t match schema definition
Trait Implementations§
Source§impl Debug for SchemaError
impl Debug for SchemaError
Auto Trait Implementations§
impl Freeze for SchemaError
impl RefUnwindSafe for SchemaError
impl Send for SchemaError
impl Sync for SchemaError
impl Unpin for SchemaError
impl UnsafeUnpin for SchemaError
impl UnwindSafe for SchemaError
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