identifier 0.1.3

Generate 128 bits id structs easily
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use identifier::Identifier;

mod mod_id {
    pub fn generate() -> u128 {
        1
    }

    pub fn validate(_value: u128) -> bool {
        true
    }
}

#[derive(Identifier, Eq, PartialEq)]
#[identifier(with = "mod_id")]
struct Id(u64);

fn main() {}