Crate type_ulid

Source
Expand description

A simple crate containing the TypeUlid trait to allow associating Ulid identifiers with Rust types.

§Example

#[derive(TypeUlid)]
#[ulid = "01GNDP9Y66JGBTGTX4XK6M32YB"]
struct MyStruct;

Structs§

Ulid
A Ulid is a unique 128-bit lexicographically sortable identifier

Traits§

TypeUlid
Associates a Ulid ID to a Rust type.
TypeUlidDynamic
Allows reading a type’s Ulid from the context of a trait object when the concrete Rust type is not known at compile time.

Derive Macros§

TypeUlid
Derive macro for the TypeUlid trait.