Skip to main content

Crate gearbox_rs_macros

Crate gearbox_rs_macros 

Source

Macros§

pg_queries
Generate custom query methods on PgClient.

Attribute Macros§

cog
Derive macro for creating a Cog with automatic dependency injection.
cog_config
Implements CogConfig trait for a struct with the given config key.
delete
Defines a DELETE route handler with automatic dependency injection.
gearbox_app
Generates a Gearbox application entry point.
get
Defines a GET route handler with automatic dependency injection.
patch
Defines a PATCH route handler with automatic dependency injection.
post
Defines a POST route handler with automatic dependency injection.
put
Defines a PUT route handler with automatic dependency injection.

Derive Macros§

Crud
Derive macro for generating REST CRUD endpoints with pagination.
PgEntity
Derive macro for implementing PgEntity and PgRepository traits.