Skip to content
Topics on the Rust Programming Language for Vancouver Rust meetup, 17 April 2019
HTML Rust
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
Cargo.toml
LICENSE
README.md
energy.json
presentation.html
presentation.md
presentation.pdf
remark-latest.min.js

README.md

Effective serde By Writing Less Rust Code

For Vancouver Rust meetup 2019-04-17

Vancouver, BC Canada

Introduction

The example offered is a simple, realistic example of minimalist JSON file where:

  1. Outer structure is an object (not an array).
  2. Top-level keys contain information (not name of structure)
  3. Inner values within array indicate mixed categories

Write less Rust code overall simply by making use of various serde attributes, the question-mark operator (?) and ErrorKind with various impls of From and Into traits.

Presentation

The slide deck is intended to be a stand-alone presentation, so there's something for those who may have missed the original event.

Slides are in Markdown, suitable for use with Remark.js v0.14.0.

The Markdown version of the presentation is presentation.md, and the rendered PDF version is presentation.pdf.

You can’t perform that action at this time.