Attribute Macro simple_tables_derive::table[][src]

#[table]
Expand description

Initialises a struct to be a Table that holds information about a table row.

Examples

#[table_row]
struct TableRow {
    id: i32,
    name: String,
    email: String
}

#[table(rows = TableRow, uid = "id")] // Optional: add a uid field (has to match a field in TableRow)
struct Table {}