bid

Crates.iobid
lib.rsbid
version0.1.0-pre.3
sourcesrc
created_at2023-04-29 09:49:26.414093
updated_at2023-04-29 19:28:40.97419
descriptionBranded IDs
homepagehttps://github.com/lffg/bid
repositoryhttps://github.com/lffg/bid
max_upload_size
id851950
size9,556
Luiz Felipe Gonçalves (lffg)

documentation

https://docs.rs/bid

README

Branded ID — 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,
    // ...
}
Commit count: 0

cargo fmt