Crate actix_contrib_rest

Source
Expand description

Util types and functions for REST and webapp projects built on top of the Actix Web framework.

It does include structs and methods to:

  • Managing errors.
  • Properly serialize errors, with a JSON response explaining the reason.
  • Pagination and query search structs.
  • Basic types for managing DB connections and transactions (sqlx-postgres feature).
  • Basic methods to easily deals with streams and integration tests.

(❗️) This project is in a very early stage.

Modules§

page
Map page responses.
query
Map query searches.
response
Handlers to manage HTTP responses.
result
Types to manage errors in Actix apps.
stream
Utils to deal with streams data types.
test
Utils methods to write tests.