Skip to main content

Crate foxtive

Crate foxtive 

Source

Modules§

enums
ext
helpers
Utility Library
macros
prelude
results
setup
tokio

Macros§

bad_request
Creates a bad_request error with optional format arguments.
conflict
Creates a conflict error with optional format arguments.
ensure
Asserts a condition is true, otherwise returns a bad_request error. Useful for lightweight guard clauses at the top of service functions.
ensure_found
Unwraps an Option, returning a not_found error if None.
forbidden
Creates a forbidden error with optional format arguments.
internal_server_error
Creates an internal_server_error error with optional format arguments.
invalid
Alias for bad_request!.
not_found
Creates a not_found error with optional format arguments.
unauthorized
Creates an unauthorized error with optional format arguments.
unprocessable_entity
Creates an unprocessable_entity error with optional format arguments.
validation_error
Creates a validation_error (422) with a message and per-field errors.

Structs§

Error
The Error type, a wrapper around a dynamic error type.
FoxtiveHelpers
FoxtiveState
The shared application state.
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).

Enums§

Environment

Statics§

FOXTIVE

Type Aliases§

ValidationErrors
Structured validation errors: field name → list of messages.

Attribute Macros§

async_trait