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
Modelfor a struct with named fields.