Skip to main content

Crate rust_api_macros

Crate rust_api_macros 

Source
Expand description

Procedural macros for rust-api framework

Provides route macros like #get, #post, etc. for defining HTTP endpoints in a FastAPI-style syntax.

Attribute Macrosยง

delete
Define a DELETE route handler
get
Define a GET route handler
patch
Define a PATCH route handler
post
Define a POST route handler
put
Define a PUT route handler