Skip to main content

Crate luxid_macros

Crate luxid_macros 

Source
Expand description

Procedural macros for Luxid.

Neither macro emits salvo types — generated code depends only on Luxid’s own traits, which keeps the substrate sealed even in macro output.

Attribute Macros§

controller
Turn an inherent impl block into routable actions.
middleware
Implement Middleware from an inherent async fn handle(&self, ctx: HttpContext, next: Next) -> Result<Response>.
model
Declare a model’s relations.
test
A test that leaves the database as it found it.

Derive Macros§

Model
Derive model operations and typed columns for a SeaORM entity model.
Validate
Derive form-request validation.