Open Zerowalker opened 2 years ago
fwiw master currently has a similar example that deserializes to a top-level Vec
, but the feature is incomplete and unreleased.
Ah indeed it does, so this was a bit unnecessary of me bringing it up i guess;P
Even so, it seems reasonable to expect your example to work. This is also related to allowing duplicate keys to be {de,}serialized as a vec.
But the feature was incomplete right? so if the example you linked doesn't work, it make sense my doesn't work, or did i misunderstand you?
But the feature was incomplete right?
The example in master is incomplete because it can only deserialize. Serialization fails because it is not implemented.
so if the example you linked doesn't work, it make sense my doesn't work
The example linked does work, but its approach differs from yours (uses a top-level vec of an enum instead of a top-level map with a vec field). I'm pretty sure your code still does not work.
As far as i can tell it's not supported.
Here's an example: