Expand description
Contains error and result types for all the model functions.
Structs§
- Model
Error - Error type used by all models. Used as the error type in ModelError, which is used by all the controllers in the application.
Enums§
- Http
Error Type - Types of HTTP errors that can occur
- Model
Error Type - The type of ModelError that occured.
Traits§
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§
- Model
Result - Used as the result types for all models.