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
dbnattributes: - Dummy derive macro to enable the
dbnhelper attribute for record types using thedbn_recordproc macro but neitherCsvSerializenorJsonSerializeas 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_attrincompatibility 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.