pub enum ExpectOpError {
Show 15 variants
UnsupportedOperation {
context: Context<'static>,
received: ValueTypeObject,
expected_operation: ExpectOpMeta,
},
ObjectKeyMissingForExpectOp {
context: Context<'static>,
expected_key: String,
expected_operation: ExpectOpMeta,
},
ObjectKeyValueIsEqual {
context: Context<'static>,
received: ValueObject,
expected_operation: ExpectOpMeta,
},
ContainsFound {
context: Context<'static>,
json_type: JsonType,
expected: ValueObject,
received: ValueObject,
},
ContainsNotFound {
context: Context<'static>,
json_type: JsonType,
expected: ValueObject,
received: ValueObject,
},
RegexNoMatch {
context: Context<'static>,
json_type: JsonType,
pattern: String,
received: ValueObject,
},
ArrayContainsDuplicate {
context: Context<'static>,
duplicate: ValueObject,
received_array: ArrayObject,
},
ArrayAllEqual {
error: Box<ExpectJsonError>,
received_full_array: ArrayObject,
},
IntegerIsZero {
context: Context<'static>,
received: IntegerObject,
},
IntegerIsNotZero {
context: Context<'static>,
received: IntegerObject,
},
FloatIsZero {
context: Context<'static>,
received: FloatObject,
},
FloatIsNotZero {
context: Context<'static>,
received: FloatObject,
},
UnknownError {
error: Box<dyn StdError>,
context: Context<'static>,
message: String,
expected_operation: ExpectOpMeta,
},
UnknownErrorMessage {
context: Context<'static>,
message: String,
expected_operation: ExpectOpMeta,
},
ExpectJsonError {
error: Box<ExpectJsonError>,
},
}Variants§
UnsupportedOperation
ObjectKeyMissingForExpectOp
ObjectKeyValueIsEqual
ContainsFound
ContainsNotFound
RegexNoMatch
ArrayContainsDuplicate
ArrayAllEqual
IntegerIsZero
IntegerIsNotZero
FloatIsZero
FloatIsNotZero
UnknownError
Fields
§
expected_operation: ExpectOpMetaUnknownErrorMessage
ExpectJsonError
Fields
§
error: Box<ExpectJsonError>Implementations§
Source§impl ExpectOpError
impl ExpectOpError
Trait Implementations§
Source§impl Debug for ExpectOpError
impl Debug for ExpectOpError
Source§impl Display for ExpectOpError
impl Display for ExpectOpError
Source§impl Error for ExpectOpError
impl Error for ExpectOpError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ExpectJsonError> for ExpectOpError
impl From<ExpectJsonError> for ExpectOpError
Source§fn from(error: ExpectJsonError) -> Self
fn from(error: ExpectJsonError) -> Self
Converts to this type from the input type.
Source§impl From<ExpectOpError> for ExpectJsonError
impl From<ExpectOpError> for ExpectJsonError
Source§fn from(source: ExpectOpError) -> Self
fn from(source: ExpectOpError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExpectOpError
impl !RefUnwindSafe for ExpectOpError
impl !Send for ExpectOpError
impl !Sync for ExpectOpError
impl Unpin for ExpectOpError
impl !UnwindSafe for ExpectOpError
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