Expand description
Proc-macros for rustango.
v0.1 ships #[derive(Model)], which emits:
- a
Modelimpl carrying a staticModelSchema, - an
inventory::submit!so the model is discoverable from the registry, - an inherent
objects()returning aQuerySet<Self>, - a
sqlx::FromRowimpl so query results decode into the struct.
Macros§
- embed_
migrations - Bake every
*.jsonmigration file in a directory into the binary at compile time. Returns a&'static [(&'static str, &'static str)]of(name, json_content)pairs, lex-sorted by file stem.
Derive Macros§
- Model
- Derive a
Modelimpl. See crate docs for the supported attributes.