Expand description
Procedural macros for Nautilus. Provides #[custom_data] for defining custom data types
with generated boilerplate (constructor, HasTsInit, CustomDataTrait, Arrow, derives).
Attribute Macrosยง
- custom_
data - Expands a struct into a custom data type with generated impls:
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)], constructor, HasTsInit, CustomDataTrait, ArrowSchemaProvider, EncodeToRecordBatch, DecodeDataFromRecordBatch, CatalogPathPrefix, From/TryFrom for Data. Callnautilus_serialization::ensure_custom_data_registered::<T>()and (for Python)nautilus_model::data::register_rust_extractor::<T>()once per type. Requires fields to includets_eventandts_init(e.g.nautilus_core::UnixNanos). Supported field types include InstrumentId, AccountId, Currency, BarType, Params, UnixNanos, f64, f32, bool, String, u64, i64, u32, i32,Vec<f64>, andVec<u8>.