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§

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

Traits§

  • Associates a Ulid ID to a Rust type.
  • 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§

  • Derive macro for the TypeUlid trait.