Skip to main content

guard

Attribute Macro guard 

Source
#[guard]
Expand description

Re-exported public API. Marks a dependency-injected struct as a route guard.

It accepts the same struct forms and field rules as [injectable], and generates Injectable; implement caelix::Guard separately to decide whether a request may continue.