toolu-orm-macros 0.2.0

Proc macros (Table, FromRow, relations) for toolu-orm
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! `#[derive(Relational)]` on an enum must fail.

use toolu_orm_macros::Relational;

#[derive(Relational)]
#[relational(table = "widgets")]
enum Widget {
  A,
  B,
}

fn main() {
  let _ = Widget::A;
}