id

Macro id 

Source
macro_rules! id {
    (
        $(#[$meta:meta])*
        $id:ident
    ) => { ... };
}
Expand description

Generate an identifier type

GitHub uses unique numerical ids for most of its resources. The [id!] macro generates a struct that represents such an identifier, making it easy to generate unique types for different resources.

ยงExample

use automatons_github::id;

id!(RepositoryId);
id!(UserId);