-
|
This is a part of question #17839 Rust In my answer in the discussion however, if I'm right, it's a must to use Type So how can I define the way a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Assuming the type represented by And fwiw, eventually I do want to move away from |
Beta Was this translation helpful? Give feedback.
Assuming the type represented by
TypeIdis registered, you might be able to useSerializeWithRegistryand its corresponding type data to fetch that type by theTypeId, retrieve its type path, and then serialize that path. Then just do the reverse with the deserializer counterparts.And fwiw, eventually I do want to move away from
TypeIdbeing the registry key in order to better support dynamic/runtime/scripting types.