Module error

Module error 

Source
Expand description

Contains error and result types for all the model functions.

Structs§

ModelError
Error type used by all models. Used as the error type in ModelError, which is used by all the controllers in the application.

Enums§

HttpErrorType
Types of HTTP errors that can occur
ModelErrorType
The type of ModelError that occured.

Traits§

TryToOptional

Functions§

as_model_error
Helper function for .map_err() chains to wrap any error as ModelError.
missing_model_error
Helper function for .ok_or_else() to create ModelError on None.

Type Aliases§

ModelResult
Used as the result types for all models.