Right now, it's not very convenient to transmit nontrivial data structures via pods. For example, in FrogCrypto, I'd like the server to be able to send a Vec<(i64, RawValue)> to the client. There is a lot of packing and unpacking that needs to be done to convert this type into a Value and then back into its original form.
It seems like the most convenient thing would be to implement a serde::Serializer and serde::Deseralizer that can handle converting to and from TypedValue, similar to the approach taken by serde_json::Value.
Right now, it's not very convenient to transmit nontrivial data structures via pods. For example, in FrogCrypto, I'd like the server to be able to send a
Vec<(i64, RawValue)>to the client. There is a lot of packing and unpacking that needs to be done to convert this type into aValueand then back into its original form.It seems like the most convenient thing would be to implement a
serde::Serializerandserde::Deseralizerthat can handle converting to and fromTypedValue, similar to the approach taken byserde_json::Value.