Derive Macro dbn_macros::JsonSerialize
source · #[derive(JsonSerialize)]
{
// Attributes available to this derive:
#[dbn]
}
Expand description
Derive macro for JSON serialization. Supports the following dbn attributes:
c_char: serializes the field as acharfixed_price: serializes the field as fixed-price, with the output format depending onPRETTY_PXskip: does not serialize the fieldunix_nanos: serializes the field as a UNIX timestamp, with the output format depending onPRETTY_TS
Note: fields beginning with _ will automatically be skipped, e.g. _dummy isn’t
serialized.