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() {}