1 unstable release
0.1.3 | Oct 13, 2023 |
---|
3KB
typed_id2
Usage
use typed_id::Id;
struct Customer {
name: String,
}
type CustomerId = Id<i32, Customer>;
let customer_id = CustomerId::new(1);
typed ID for Rust
0.1.3 | Oct 13, 2023 |
---|
3KB
use typed_id::Id;
struct Customer {
name: String,
}
type CustomerId = Id<i32, Customer>;
let customer_id = CustomerId::new(1);