Skip to main content

Module custom

Module custom 

Source

Structs§

CustomData
A wrapper for custom data including its data type.
PythonCustomDataWrapper
Wraps a Python custom data object so it can participate in the Rust data pipeline as an Arc<dyn CustomDataTrait>.

Traits§

CustomDataTrait
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::deserialize sees the type name returned by T::type_name_static(), it will call T::from_json.
register_python_data_class