dbent-derive 0.1.0

Dbent procedural macros
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented0 out of 2 items with examples
  • Size
  • Source code size: 25.9 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 291.8 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 6s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • hiltonm/dbent
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • hiltonm

dbent-derive - procedural macros for dbent

This crate defines two procedural macros that generate implementations for the Keyed and Label traits.

The Entity macro generates an implementation of the Keyed trait, which requires a type to have a dbent::Key<T> as its first field.

The Label macro generates an implementation of the Label trait, which requires a type to mark a Display-friendly field as #[label].