Skip to content

Make it easier to deserialize data from a TypedValue #391

@dgulotta

Description

@dgulotta

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfrontendTopics: Language, Syntactic Sugar, Usability

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions