Serde derives Serialize and Deserialize from struct definitions. Attributes rename fields, skip empties, flatten nested structures and set defaults. Chain-adjacent work uses serde_json for RPC payloads and bincode or borsh for compact binary encodings.
← Rust theorytheory 0/50 · 0%
Ecosystem · medium
35. Serde and Serialization
Deriving JSON and binary formats.
Check your understanding
1. Which attribute renames a field on the wire?
2. Which format is compact and binary?