Skip to main content

Crate rango_macro

Crate rango_macro 

Source
Expand description

Procedural macros for Rango: the Model derive that turns a struct into a stored row, plus the form, input, template, and main attribute macros that wire serde, Askama, and tokio.

Attribute Macros§

form
Derives Deserialize and Default for a form struct, using rango::serde.
input
Derives only Deserialize for an input struct, using rango::serde.
main
Runs an async fn main on a multi-threaded tokio runtime with all features enabled.
template
Derives Template via Askama, forwarding the attribute arguments unchanged.

Derive Macros§

Model
Implements Model for a struct, mapping each field to a column.