Structs§
- Custom
Data - A wrapper for custom data including its data type.
- Python
Custom Data Wrapper - Wraps a Python custom data object so it can participate in the Rust data
pipeline as an
Arc<dyn CustomDataTrait>.
Traits§
- Custom
Data Trait - Trait for typed custom data that can be used within the Nautilus domain model.
Functions§
- clone_
pyclass_ to_ pyobject - Converts a cloneable PyO3-backed custom data value into a Python object.
- ensure_
custom_ data_ json_ registered - Registers a custom data type for JSON deserialization if not already registered. Idempotent: safe to call multiple times for the same type (e.g. module init).
- get_
python_ data_ class - reconstruct_
python_ custom_ data - Reconstructs a Python custom data instance from type name and JSON.
- register_
custom_ data_ json - Registers a custom data type for JSON deserialization. When
Data::deserializesees the type name returned byT::type_name_static(), it will callT::from_json. - register_
python_ data_ class