Skip to main content

model

Attribute Macro model 

Source
#[model]
Expand description

Makes a struct a model: adds id and timestamps, makes fields pub, and derives Debug, Clone, Serialize and Model.