#[custom_data]Expand description
Generates custom-data model behavior. Expands a named-field struct into a Serde-backed custom data type.
Generates the required Serde derives, HasTsInit, CustomDataTrait, Data conversions,
constructor, display implementation, and optional PyO3 bindings. The struct must end with
ts_event and ts_init fields, in that order; constructors take them as their last arguments.
Use #[custom_data(pyo3)] to generate Python bindings.
Use #[custom_data(pyo3, no_display)] to provide a custom display implementation.
Use stub_module = "nautilus_trader.<module>" with pyo3 to emit stub metadata.
Use #[custom_data_field(serde)] for fields requiring the generic Serde Python bridge.
Use export_fields for internal Arrow generation in nautilus_serialization from model-crate fields.