pub fn register_custom_data_json<T: CustomDataTrait + Sized>() -> Result<()>Expand description
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.
ยงErrors
Returns an error if the type is already registered.