Skip to main content

ensure_custom_data_json_registered

Function ensure_custom_data_json_registered 

Source
pub fn ensure_custom_data_json_registered<T: CustomDataTrait + Sized>() -> Result<()>
Expand description

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).

ยงErrors

Does not return an error (idempotent insert into DashMap).