Crates.io | typed_id2 |
lib.rs | typed_id2 |
version | 0.1.3 |
source | src |
created_at | 2023-10-13 09:00:20.002641 |
updated_at | 2023-10-13 09:00:20.002641 |
description | typed ID for Rust |
homepage | |
repository | https://github.com/cjwcommuny/typed-id |
max_upload_size | |
id | 1002117 |
size | 5,331 |
use typed_id::Id;
struct Customer {
name: String,
}
type CustomerId = Id<i32, Customer>;
let customer_id = CustomerId::new(1);