rullst-orm-macros 6.0.2

Procedural macros for the rullst-orm ORM.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use syn::{DeriveInput, parse_quote};

#[test]
fn test_basic_model() {
    let input: DeriveInput = parse_quote! {
        #[derive(Orm)]
        #[orm(table = "users")]
        pub struct User {
            pub id: i32,
            pub name: String,
            pub email: String,
        }
    };
    let _ = input;
}