Skip to content

Commit

Permalink
Merge pull request #685 from rimutaka/master
Browse files Browse the repository at this point in the history
Linked ReadMe to Using Derive page.
  • Loading branch information
dtolnay committed Jun 29, 2020
2 parents fcddb9a + 8daa85b commit 53ddaf9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -196,6 +196,9 @@ autocomplete field names to prevent typos, which was impossible in the
when we write `p.phones[0]`, then `p.phones` is guaranteed to be a
`Vec<String>` so indexing into it makes sense and produces a `String`.

Read [Using derive](https://serde.rs/derive.html)
for details on setting up `#[derive(Serialize, Deserialize)]` macro.

## Constructing JSON values

Serde JSON provides a [`json!` macro][macro] to build `serde_json::Value`
Expand Down

0 comments on commit 53ddaf9

Please sign in to comment.