Struct ruma_client_api::error::ErrorBody [−][src]
Expand description
A Matrix Error without a status code
Fields
kind: ErrorKind
A value which can be used to handle an error message
message: String
A human-readable error message, usually a sentence explaining what went wrong.
Implementations
Convert the ErrorBody into an Error by adding the http status code.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for ErrorBody
impl UnwindSafe for ErrorBody
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more