-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Examples] Add examples of how to map over generic and labelled repre…
…sentations (#192) * [Examples] Add examples of how to map over generic and labelled representations ``` ❯ cargo run --example generic Finished dev [unoptimized + debuginfo] target(s) in 0.02s Running `target/debug/examples/generic` Joe First name: bo Last name: peep age: 30 ❯ cargo run --example labelled Finished dev [unoptimized + debuginfo] target(s) in 0.02s Running `target/debug/examples/labelled` Blow ExternalPerson { age: 10, address: ExternalAddress { name: "somewhere out there", phone: ExternalPhoneNumber { main: 1234, }, }, name: "John", } first_name: bo last_name: peep age: 30 ```
- Loading branch information
Showing
3 changed files
with
30 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters