Skip to main content

Model

Derive Macro Model 

Source
#[derive(Model)]
{
    // Attributes available to this derive:
    #[table]
    #[column]
    #[primary]
    #[unique]
    #[index]
    #[foreign]
    #[data_type]
    #[default]
    #[check]
    #[hypertable]
    #[compress]
    #[has_many]
    #[belongs_to]
}