Skip to main content

Crate puerto_macros

Crate puerto_macros 

Source
Expand description

The attribute macros of Puerto projects (ADR-0021 § 4). A project reaches them through puerto-web — puerto_web::requiere_rol — never by depending on this crate.

Attribute Macros§

requiere_rol
#[requiere_rol("admin")] on a handler that takes auth: BearerAuth: a caller without the role is answered 403 auth.prohibido before the body runs.