I’m trying to write a deserializer for a custom data format in Rust using Serde according to this documentation.
Everything seems to work, except that I’d like to be able to capture part of the input in order to deserialize it later according to fields that have been deserialized in the first pass.
The serde_json
crate provides a RawValue
for this use case but I didn’t find any documentation for it.
How is it working? What should be the steps to implement an equivalent for a custom data format?
Thanks 🙂