Expand description
Generic error types ready for web servers
Macros§
- err
- Creates a new
Box<Error>
, which will be unexpected if the provided info has a server error status.
Structs§
- ApiError
- An RFC-7807 compatible error implementing axum’s IntoResponse
- Error
- This type represents an error in the service
Enums§
- Generic
Error Code - Generic error codes, they’re usually not meant for the end-user
- GraphQL
Error - GraphQL error
Traits§
- MapTo
Err - Utility trait to map any
Result<T,E>
to aResult<T, Box<Error>>
- OkOrErr
- Utility trait to map any
Option<T>
to aResult<T, Box<Error>>
- Result
Ext - Utility trait to extend a Result
Type Aliases§
- ApiResult
- GraphQL
Result - GraphQL Result that represents either success (
Ok
) or failure (Err
) - Result