rullst-orm-macros 12.1.2

Procedural macros and derive attributes for the rullst-orm Active Record pattern.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use rullst_orm_macros::Orm;

#[derive(Orm)]
#[orm(table = "accounts")]
struct Account {
    id: i32,
    #[orm(has_many = "Post<Vec>")]
    posts: Vec<Post>,
}

struct Post;

fn main() {}