Module dbn::macros

source ·
Expand description

Helper macros for working with multiple RTypes, Schemas, and types of records.

Attribute Macros§

  • Attribute macro that acts like a derive macro for Debug (with customization), Record, RecordMut, HasRType, PartialOrd, and AsRef<[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 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.
  • Derive macro for JSON serialization.
  • Derive macro for field descriptions exposed to Python.
  • Derive macro for Debug representations with the same extensions for DBN records as dbn_record.