Skip to main content

Model

Derive Macro Model 

Source
#[derive(Model)]
{
    // Attributes available to this derive:
    #[model]
    #[key]
    #[autoincrement]
    #[unique]
    #[index]
    #[has_many]
    #[belongs_to]
    #[many_to_many]
}