Modules§
Macros§
- bad_
request - Creates a
bad_requesterror with optional format arguments. - conflict
- Creates a
conflicterror with optional format arguments. - ensure
- Asserts a condition is true, otherwise returns a
bad_requesterror. Useful for lightweight guard clauses at the top of service functions. - ensure_
found - Unwraps an
Option, returning anot_founderror ifNone. - forbidden
- Creates a
forbiddenerror with optional format arguments. - internal_
server_ error - Creates an
internal_server_errorerror with optional format arguments. - invalid
- Alias for
bad_request!. - not_
found - Creates a
not_founderror with optional format arguments. - unauthorized
- Creates an
unauthorizederror with optional format arguments. - unprocessable_
entity - Creates an
unprocessable_entityerror with optional format arguments. - validation_
error - Creates a
validation_error(422) with a message and per-field errors.
Structs§
- Error
- The
Errortype, a wrapper around a dynamic error type. - Foxtive
Helpers - Foxtive
State - The shared application state.
- Status
Code - An HTTP status code (
status-codein RFC 9110 et al.).
Enums§
Statics§
Type Aliases§
- Validation
Errors - Structured validation errors: field name → list of messages.