Serde: Deriving, JSON & Field Attributes. Serde ("SERialize/DEserialize") is the de facto standard Rust framework for converting Rust data structures to and from formats like JSON, YAML, and more. Its generic core plus s…
ReadSerde: Enums, flatten, Custom Logic & Other Formats. Enums. #[derive(Serialize, Deserialize)] #[serde(tag = "type")] enum Event { Click { x: i32, y: i32 }, KeyPress { key: String }, } // {"type": "Click", "x": 10, "y": 2…
ReadSave this stack to your personal DevRecall — add your own notes, track what you're learning, and share what you know with the community.
Get started — free forever