1 unstable release

0.1.3 Oct 13, 2023

#4 in #id-type

50 downloads per month

Custom license

3KB

typed_id2

Usage

use typed_id::Id;

struct Customer {
    name: String,
}
type CustomerId = Id<i32, Customer>;

let customer_id = CustomerId::new(1);

No runtime deps