I have a custom deserialize function to deserialize a u16 from either a number, like 10, or String as a hex value, like “0x10”, its pretty straightforward. Its works great for single values, however i want to expand it so i can deserialize an array [10, “0x10”] into a Vec. I feel like there should be an elegant solution to this, but i can’t seem to find it. Any help would be appreciated.
I have a complete example in the playground.