Skip to main content

Crate rango_orm_derive

Crate rango_orm_derive 

Source
Expand description

#[derive(Model)] and #[derive(ModelMixin)] for Rango ORM.

Internal crate: depend on rango-orm, which re-exports the derives.

Attribute Macros§

model
Attribute macro: adds an implicit primary key, then derives Model.

Derive Macros§

Model
Derive macro for Rango models.
ModelMixin
Marker derive for abstract model mixins (never creates a table).
Partial
Derive macro for typed partial selects: a struct holding a subset of a model’s columns, read with QueryBuilder::select_as::<Self>().