fastauth-macros 0.4.0

Derive macros for fastauth: Fields, Model and AuthError.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use fastauth_core::Fields;

#[derive(Fields, Clone)]
struct Profile {
    #[field(nullable)]
    plan: String,
}

#[derive(Fields, Clone)]
struct Score {
    #[field(default = 1.5)]
    score: i64,
}

fn main() {}