Crates.io | dbent-derive |
lib.rs | dbent-derive |
version | 0.1.0 |
source | src |
created_at | 2023-02-18 17:19:34.640453 |
updated_at | 2023-02-18 17:19:34.640453 |
description | Dbent procedural macros |
homepage | |
repository | https://github.com/hiltonm/dbent |
max_upload_size | |
id | 788341 |
size | 25,932 |
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]
.