pub trait DetailedError:
StdError
+ ResponseError
+ Serialize {
// Required method
fn error_code(&self) -> Cow<'static, str>;
}Expand description
Error trait which internal errors must implement such that it can be transformed to a complete JSON error response.
Required Methods§
sourcefn error_code(&self) -> Cow<'static, str>
fn error_code(&self) -> Cow<'static, str>
Identifying name of the error.
Object Safety§
This trait is not object safe.