pub enum E2eSchemaError {
UnnamedOp {
index: usize,
},
DuplicateOpName {
name: String,
},
UnnamedArg {
op: String,
index: usize,
},
ExampleMissingSuccess {
op: String,
index: usize,
},
}Expand description
Why an advertised schema is unusable.
Variants§
UnnamedOp
An op has no name.
DuplicateOpName
Two ops share a name, so dispatch by name is ambiguous.
UnnamedArg
An argument has no name, or no usable type.
ExampleMissingSuccess
An example’s returns has no success boolean.
The contract is that every op result says whether it worked. An example that omits it is advertising a result shape the runtime is required to reject.
Trait Implementations§
Source§impl Clone for E2eSchemaError
impl Clone for E2eSchemaError
Source§fn clone(&self) -> E2eSchemaError
fn clone(&self) -> E2eSchemaError
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 E2eSchemaError
impl Debug for E2eSchemaError
Source§impl Display for E2eSchemaError
impl Display for E2eSchemaError
impl Eq for E2eSchemaError
Source§impl PartialEq for E2eSchemaError
impl PartialEq for E2eSchemaError
impl StructuralPartialEq for E2eSchemaError
Auto Trait Implementations§
impl Freeze for E2eSchemaError
impl RefUnwindSafe for E2eSchemaError
impl Send for E2eSchemaError
impl Sync for E2eSchemaError
impl Unpin for E2eSchemaError
impl UnsafeUnpin for E2eSchemaError
impl UnwindSafe for E2eSchemaError
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