dbent-derive

Crates.iodbent-derive
lib.rsdbent-derive
version0.1.0
sourcesrc
created_at2023-02-18 17:19:34.640453
updated_at2023-02-18 17:19:34.640453
descriptionDbent procedural macros
homepage
repositoryhttps://github.com/hiltonm/dbent
max_upload_size
id788341
size25,932
Hilton Medeiros (hiltonm)

documentation

README

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].

Commit count: 7

cargo fmt