pub struct ErrorBody {
pub code: ErrorCode,
pub message: String,
}Expand description
The body of an error reply.
Fields§
§code: ErrorCodeWhat went wrong.
message: StringA message for people.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorBody
impl<'de> Deserialize<'de> for ErrorBody
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 ErrorBody
Source§impl From<ErrorBody> for ProtocolError
impl From<ErrorBody> for ProtocolError
impl StructuralPartialEq for ErrorBody
Auto Trait Implementations§
impl Forget for ErrorBody
impl Freeze for ErrorBody
impl Move for ErrorBody
impl RefUnwindSafe for ErrorBody
impl Send for ErrorBodywhere
RawVecInner: Send,
impl Sync for ErrorBodywhere
RawVecInner: Sync,
impl Unpin for ErrorBody
impl UnsafeUnpin for ErrorBody
impl UnwindSafe for ErrorBodywhere
RawVecInner: UnwindSafe,
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