Derive Macro dbn_macros::RecordDebug
source · #[derive(RecordDebug)]
{
// Attributes available to this derive:
#[dbn]
}
Expand description
Derive macro for Debug representations with the same extensions for DBN records
as dbn_record.
Supports the following dbn attributes:
c_char: format the type as acharinstead of as a numericfixed_price: format the integer as a fixed-precision decimalfmt_binary: format as a binaryfmt_method: try to format by calling the getter method with the same name as the field. If the getter returns an error, the raw field value will be usedskip: won’t be included in theDebugoutput
Note: fields beginning with _ will automatically be skipped, e.g. _reserved
isn’t included in the Debug output.