Skip to main content

Crate salvo_macros

Crate salvo_macros 

Source
Expand description

Procedural macros for the Salvo web framework.

This crate is normally used through the re-exports from salvo or salvo_core::prelude. It provides the #[handler] attribute for turning functions or impl blocks into Salvo handlers, and the Extractible derive for request extraction metadata.

Read more: https://salvo.rs

Attribute Macros§

handler
Converts a function or impl block into a Salvo Handler.

Derive Macros§

Extractible
Implements salvo::extract::Extractible for a request data struct.