Crate graphql_starter

Source

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§

MaybeOption
Like an Option but with an additional Unset variant, that’s why it’s maybe an option.

Derive Macros§

Subject
Derives the Subject trait.