Modules§
- ansi
- This module helps with ANSI strings
- auth
- Authentication and authorization utilities
- axum
- Utilities to work with axum
- config
- Read config from toml and env variables using Figment
- crates
- Re-exported crates
- error
- Generic error types ready for web servers
- graphql
- Utilities to work with [async-graphql]
- macros
- pagination
- Pagination utils based on the Relay specification
- queried_
fields - Utilities to include queried fields in APIs
- request_
id - Based on https://github.com/imbolc/tower-request-id, but allowing to generate an Uuid from te RequestId
- serde
- Custom de/serialization helpers to use in combination with [serde’s with-annotation][https://serde.rs/field-attrs.html#with].
- sqlx
- Utilities to work with [sqlx]
- timeout
- Based on https://github.com/tower-rs/tower-http/blob/main/tower-http/src/timeout/service.rs, but allowing to customize the response
- tracing
- Utilities for [tracing-subscriber]
Macros§
- err
- Creates a new
Box<Error>
, which will be unexpected if the provided info has a server error status. - map_
entry_ for - Creates a new entry type implementing GraphQLMapEntry for the given type.
- newtype
- Creates a newtype struct implementing From, Deref and DerefMut
- newtype_
impl - Implements From, Deref and DerefMut for a newtype
- sqlx_
expand_ paginated_ query - Similar to
sqlx::expand_query!
but includes pagination capabilities. - sqlx_
query_ paginated_ as - Similar to
sqlx::query_as!
but with pagination capabilities. - struct_
to_ tuple - Builds a tuple from the given struct fields
- using
- Declares a
mod
and uses it.
Enums§
- Maybe
Option - Like an Option but with an additional Unset variant, that’s why it’s maybe an option.
Derive Macros§
- Subject
- Derives the
Subject
trait.