pub struct ObservedError {
pub code: i64,
pub message: String,
}Expand description
The shape of an observed error: the code
the server returned and the message it
carried. Compared against ExpectedError
with == on the code and substring on
the message.
Fields§
§code: i64The JSON-RPC error code the server returned.
message: StringThe message the server returned.
Trait Implementations§
Source§impl Clone for ObservedError
impl Clone for ObservedError
Source§impl Debug for ObservedError
impl Debug for ObservedError
Source§impl<'de> Deserialize<'de> for ObservedError
impl<'de> Deserialize<'de> for ObservedError
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
impl Eq for ObservedError
Source§impl PartialEq for ObservedError
impl PartialEq for ObservedError
Source§impl Serialize for ObservedError
impl Serialize for ObservedError
impl StructuralPartialEq for ObservedError
Auto Trait Implementations§
impl Freeze for ObservedError
impl RefUnwindSafe for ObservedError
impl Send for ObservedError
impl Sync for ObservedError
impl Unpin for ObservedError
impl UnsafeUnpin for ObservedError
impl UnwindSafe for ObservedError
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