Structs§
- Intermediate error type which can be converted to from any error using
?. The standardimpl From<E> for Errorwill attach StatusCode::INTERNAL_SERVER_ERROR, so if an alternative StatusCode is desired, you should use.status_code(AddStatusCode or AddStatusCodeError) to add the status before using?. - Wrapper for axum::Json that converts parsing error to serror::Error
Traits§
- Convenience trait to convert Result into serror::Result by adding status to the inner error, if it exists.
- Convenience trait to convert any Error into serror::Error by adding status and converting error into anyhow error.