Search across all documentation pages
11 pages in this section.
The trait-based design behind serde: how Serialize, Deserialize, Serializer, and Deserializer separate your types from wire formats, and why derive is codegen, not reflection.
Learn Serde basics with 9 Rust examples. Understand Serialize and Deserialize traits, convert structs to JSON, and parse JSON into structs.
Parse and emit JSON in Rust using serde_json. Learn to serialize/deserialize typed structs, use Value for dynamic JSON, and stream large payloads.
Learn how Serde serializes and deserializes data to and from TOML, YAML, and bincode formats using the same traits.
Customize how Rust structs serialize to JSON and other formats using serde attributes like rename_all, skip_serializing_if, and flatten.
Control how Rust enums map to JSON with Serde's tagging attributes, critical for polymorphic APIs and event streams. Learn internal, external, and adjacent tagging.
Learn to handle errors and validate data when parsing untrusted input with Serde. Map errors clearly and validate semantics after syntax.
Learn best practices for designing stable, versioned, and forward-compatible serialization schemas in production Rust services using serde.
A single-page roundup of every highlight bullet from the 10 pages in the serde section, grouped by source page so you can scan all 57 takeaways without opening each article individually.