Crate dbn_macros
source ·Attribute Macros§
- Attribute macro that acts like a derive macro for
Debug
(with customization),Record
,RecordMut
,HasRType
,PartialOrd
, andAsRef<[u8]>
.
Derive Macros§
- Derive macro for CSV serialization. Supports the following
dbn
attributes: - Dummy derive macro to enable the
dbn
helper attribute for record types using thedbn_record
proc macro but neitherCsvSerialize
norJsonSerialize
as helper attributes aren’t supported for proc macros alone. See https://github.com/rust-lang/rust/issues/65823. - Derive macro for JSON serialization.
- Dummy derive macro to get around
cfg_attr
incompatibility of several of pyo3’s attribute macros. See https://github.com/PyO3/pyo3/issues/780. - Derive macro for field descriptions exposed to Python.
- Derive macro for Debug representations with the same extensions for DBN records as
dbn_record
.