Crates.io | bid |
lib.rs | bid |
version | 0.1.0-pre.3 |
source | src |
created_at | 2023-04-29 09:49:26.414093 |
updated_at | 2023-04-29 19:28:40.97419 |
description | Branded IDs |
homepage | https://github.com/lffg/bid |
repository | https://github.com/lffg/bid |
max_upload_size | |
id | 851950 |
size | 9,556 |
bid
This library streamlines the process of defining and branded ID types through
the bid::declare!
macro.
Example:
bid::declare!(pub struct UserId(i32));
#[derive(Debug, Deserialize, Serialize)]
pub struct User {
pub id: UserId,
pub username: String,
// ...
}