Skip to main content

Crate rustlavel_macros

Crate rustlavel_macros 

Source
Expand description

Derive macros for Rustlavel.

#[derive(Model)] is the Eloquent-shaped half of the ORM: it turns a plain struct into something that knows its table, can be read from a row, and can be saved back — without the runtime reflection Laravel relies on.

Attribute Macros§

main
#[rustlavel::main] — start the application without naming a runtime.
test
#[rustlavel::test] — the same, for an async test.

Derive Macros§

Model
Derive Model for a struct with named fields.