Crate dbn_macros

Crate dbn_macros 

Source

Attribute Macros§

dbn_record
Attribute macro that acts like a derive macro for Debug (with customization), Record, RecordMut, HasRType, PartialOrd, and AsRef<[u8]>.

Derive Macros§

CsvSerialize
Derive macro for CSV serialization. Supports the following dbn attributes:
DbnAttr
Dummy derive macro to enable the dbn helper attribute for record types using the dbn_record proc macro but neither CsvSerialize nor JsonSerialize as helper attributes aren’t supported for proc macros alone. See https://github.com/rust-lang/rust/issues/65823.
JsonSerialize
Derive macro for JSON serialization.
MockPyo3
Dummy derive macro to get around cfg_attr incompatibility of several of pyo3’s attribute macros. See https://github.com/PyO3/pyo3/issues/780.
PyFieldDesc
Derive macro for field descriptions exposed to Python.
RecordDebug
Derive macro for Debug representations with the same extensions for DBN records as dbn_record.