{"action":"created","comment":{"url":"https://api.github.com/repos/rust-lang/book/pulls/comments/189728643","pull_request_review_id":121964785,"id":189728643,"diff_hunk":"@@ -323,6 +323,50 @@ pattern is similar to the pattern we specify to match tuples. The number of\n variables in the pattern must match the number of elements in the variant we’re\n matching.\n \n+#### Destructuring Nested Structs & Enums\n+Up until now, all of our examples have been matching structures that were one level deep. Matching can work on nested structures too!","path":"2018-edition/src/ch18-03-pattern-syntax.md","position":5,"original_position":5,"commit_id":"110d251ccdc96e93d3bbe2e5a3b58edeee9641d1","original_commit_id":"110d251ccdc96e93d3bbe2e5a3b58edeee9641d1","user":{"login":"steveklabnik","id":27786,"avatar_url":"https://avatars2.githubusercontent.com/u/27786?v=4","gravatar_id":"","url":"https://api.github.com/users/steveklabnik","html_url":"https://github.com/steveklabnik","followers_url":"https://api.github.com/users/steveklabnik/followers","following_url":"https://api.github.com/users/steveklabnik/following{/other_user}","gists_url":"https://api.github.com/users/steveklabnik/gists{/gist_id}","starred_url":"https://api.github.com/users/steveklabnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveklabnik/subscriptions","organizations_url":"https://api.github.com/users/steveklabnik/orgs","repos_url":"https://api.github.com/users/steveklabnik/repos","events_url":"https://api.github.com/users/steveklabnik/events{/privacy}","received_events_url":"https://api.github.com/users/steveklabnik/received_events","type":"User","site_admin":false},"body":"Could you add a newline above this, and wrap to 80 columns please?","created_at":"2018-05-21T22:13:55Z","updated_at":"2018-05-21T22:14:22Z","html_url":"https://github.com/rust-lang/book/pull/1312#discussion_r189728643","pull_request_url":"https://api.github.com/repos/rust-lang/book/pulls/1312","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/rust-lang/book/pulls/comments/189728643"},"html":{"href":"https://github.com/rust-lang/book/pull/1312#discussion_r189728643"},"pull_request":{"href":"https://api.github.com/repos/rust-lang/book/pulls/1312"}}},"pull_request":{"url":"https://api.github.com/repos/rust-lang/book/pulls/1312","id":180409462,"html_url":"https://github.com/rust-lang/book/pull/1312","diff_url":"https://github.com/rust-lang/book/pull/1312.diff","patch_url":"https://github.com/rust-lang/book/pull/1312.patch","issue_url":"https://api.github.com/repos/rust-lang/book/issues/1312","number":1312,"state":"open","locked":false,"title":"Add documentation for nested matching","user":{"login":"rcoh","id":492903,"avatar_url":"https://avatars0.githubusercontent.com/u/492903?v=4","gravatar_id":"","url":"https://api.github.com/users/rcoh","html_url":"https://github.com/rcoh","followers_url":"https://api.github.com/users/rcoh/followers","following_url":"https://api.github.com/users/rcoh/following{/other_user}","gists_url":"https://api.github.com/users/rcoh/gists{/gist_id}","starred_url":"https://api.github.com/users/rcoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcoh/subscriptions","organizations_url":"https://api.github.com/users/rcoh/orgs","repos_url":"https://api.github.com/users/rcoh/repos","events_url":"https://api.github.com/users/rcoh/events{/privacy}","received_events_url":"https://api.github.com/users/rcoh/received_events","type":"User","site_admin":false},"body":"I had no idea this feature existed until someone told me about it on Gitter. As far as I can tell it isn't documented in the book anywhere. If that's wrong, let me know :-)\r\n\r\nI added this PR to the 2018 book because I assume it's too late & too big a change to add to the 2nd edition since the relevant chapter is frozen. This might be an important enough feature to add to the initial section on matching, but I'll leave that up to your best judgement.","created_at":"2018-04-09T19:52:59Z","updated_at":"2018-05-21T22:14:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cf79328df68e7de3fcc8924e9661fe56ac1bd200","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":888821582,"url":"https://api.github.com/repos/rust-lang/book/labels/2018%20edition","name":"2018 edition","color":"fff0f2","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/rust-lang/book/pulls/1312/commits","review_comments_url":"https://api.github.com/repos/rust-lang/book/pulls/1312/comments","review_comment_url":"https://api.github.com/repos/rust-lang/book/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rust-lang/book/issues/1312/comments","statuses_url":"https://api.github.com/repos/rust-lang/book/statuses/110d251ccdc96e93d3bbe2e5a3b58edeee9641d1","head":{"label":"rcoh:patch-1","ref":"patch-1","sha":"110d251ccdc96e93d3bbe2e5a3b58edeee9641d1","user":{"login":"rcoh","id":492903,"avatar_url":"https://avatars0.githubusercontent.com/u/492903?v=4","gravatar_id":"","url":"https://api.github.com/users/rcoh","html_url":"https://github.com/rcoh","followers_url":"https://api.github.com/users/rcoh/followers","following_url":"https://api.github.com/users/rcoh/following{/other_user}","gists_url":"https://api.github.com/users/rcoh/gists{/gist_id}","starred_url":"https://api.github.com/users/rcoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcoh/subscriptions","organizations_url":"https://api.github.com/users/rcoh/orgs","repos_url":"https://api.github.com/users/rcoh/repos","events_url":"https://api.github.com/users/rcoh/events{/privacy}","received_events_url":"https://api.github.com/users/rcoh/received_events","type":"User","site_admin":false},"repo":{"id":128824678,"name":"book","full_name":"rcoh/book","owner":{"login":"rcoh","id":492903,"avatar_url":"https://avatars0.githubusercontent.com/u/492903?v=4","gravatar_id":"","url":"https://api.github.com/users/rcoh","html_url":"https://github.com/rcoh","followers_url":"https://api.github.com/users/rcoh/followers","following_url":"https://api.github.com/users/rcoh/following{/other_user}","gists_url":"https://api.github.com/users/rcoh/gists{/gist_id}","starred_url":"https://api.github.com/users/rcoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcoh/subscriptions","organizations_url":"https://api.github.com/users/rcoh/orgs","repos_url":"https://api.github.com/users/rcoh/repos","events_url":"https://api.github.com/users/rcoh/events{/privacy}","received_events_url":"https://api.github.com/users/rcoh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rcoh/book","description":"The Rust Programming Language","fork":true,"url":"https://api.github.com/repos/rcoh/book","forks_url":"https://api.github.com/repos/rcoh/book/forks","keys_url":"https://api.github.com/repos/rcoh/book/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rcoh/book/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rcoh/book/teams","hooks_url":"https://api.github.com/repos/rcoh/book/hooks","issue_events_url":"https://api.github.com/repos/rcoh/book/issues/events{/number}","events_url":"https://api.github.com/repos/rcoh/book/events","assignees_url":"https://api.github.com/repos/rcoh/book/assignees{/user}","branches_url":"https://api.github.com/repos/rcoh/book/branches{/branch}","tags_url":"https://api.github.com/repos/rcoh/book/tags","blobs_url":"https://api.github.com/repos/rcoh/book/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rcoh/book/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rcoh/book/git/refs{/sha}","trees_url":"https://api.github.com/repos/rcoh/book/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rcoh/book/statuses/{sha}","languages_url":"https://api.github.com/repos/rcoh/book/languages","stargazers_url":"https://api.github.com/repos/rcoh/book/stargazers","contributors_url":"https://api.github.com/repos/rcoh/book/contributors","subscribers_url":"https://api.github.com/repos/rcoh/book/subscribers","subscription_url":"https://api.github.com/repos/rcoh/book/subscription","commits_url":"https://api.github.com/repos/rcoh/book/commits{/sha}","git_commits_url":"https://api.github.com/repos/rcoh/book/git/commits{/sha}","comments_url":"https://api.github.com/repos/rcoh/book/comments{/number}","issue_comment_url":"https://api.github.com/repos/rcoh/book/issues/comments{/number}","contents_url":"https://api.github.com/repos/rcoh/book/contents/{+path}","compare_url":"https://api.github.com/repos/rcoh/book/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rcoh/book/merges","archive_url":"https://api.github.com/repos/rcoh/book/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rcoh/book/downloads","issues_url":"https://api.github.com/repos/rcoh/book/issues{/number}","pulls_url":"https://api.github.com/repos/rcoh/book/pulls{/number}","milestones_url":"https://api.github.com/repos/rcoh/book/milestones{/number}","notifications_url":"https://api.github.com/repos/rcoh/book/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rcoh/book/labels{/name}","releases_url":"https://api.github.com/repos/rcoh/book/releases{/id}","deployments_url":"https://api.github.com/repos/rcoh/book/deployments","created_at":"2018-04-09T19:41:54Z","updated_at":"2018-04-09T19:41:58Z","pushed_at":"2018-04-09T19:54:46Z","git_url":"git://github.com/rcoh/book.git","ssh_url":"git@github.com:rcoh/book.git","clone_url":"https://github.com/rcoh/book.git","svn_url":"https://github.com/rcoh/book","homepage":"https://doc.rust-lang.org/book/","size":30395,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rust-lang:master","ref":"master","sha":"aaa23beafd2383c2615091f0f75473e8d194c07a","user":{"login":"rust-lang","id":5430905,"avatar_url":"https://avatars1.githubusercontent.com/u/5430905?v=4","gravatar_id":"","url":"https://api.github.com/users/rust-lang","html_url":"https://github.com/rust-lang","followers_url":"https://api.github.com/users/rust-lang/followers","following_url":"https://api.github.com/users/rust-lang/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang/subscriptions","organizations_url":"https://api.github.com/users/rust-lang/orgs","repos_url":"https://api.github.com/users/rust-lang/repos","events_url":"https://api.github.com/users/rust-lang/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":47854924,"name":"book","full_name":"rust-lang/book","owner":{"login":"rust-lang","id":5430905,"avatar_url":"https://avatars1.githubusercontent.com/u/5430905?v=4","gravatar_id":"","url":"https://api.github.com/users/rust-lang","html_url":"https://github.com/rust-lang","followers_url":"https://api.github.com/users/rust-lang/followers","following_url":"https://api.github.com/users/rust-lang/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang/subscriptions","organizations_url":"https://api.github.com/users/rust-lang/orgs","repos_url":"https://api.github.com/users/rust-lang/repos","events_url":"https://api.github.com/users/rust-lang/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rust-lang/book","description":"The Rust Programming Language","fork":false,"url":"https://api.github.com/repos/rust-lang/book","forks_url":"https://api.github.com/repos/rust-lang/book/forks","keys_url":"https://api.github.com/repos/rust-lang/book/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rust-lang/book/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rust-lang/book/teams","hooks_url":"https://api.github.com/repos/rust-lang/book/hooks","issue_events_url":"https://api.github.com/repos/rust-lang/book/issues/events{/number}","events_url":"https://api.github.com/repos/rust-lang/book/events","assignees_url":"https://api.github.com/repos/rust-lang/book/assignees{/user}","branches_url":"https://api.github.com/repos/rust-lang/book/branches{/branch}","tags_url":"https://api.github.com/repos/rust-lang/book/tags","blobs_url":"https://api.github.com/repos/rust-lang/book/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rust-lang/book/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rust-lang/book/git/refs{/sha}","trees_url":"https://api.github.com/repos/rust-lang/book/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rust-lang/book/statuses/{sha}","languages_url":"https://api.github.com/repos/rust-lang/book/languages","stargazers_url":"https://api.github.com/repos/rust-lang/book/stargazers","contributors_url":"https://api.github.com/repos/rust-lang/book/contributors","subscribers_url":"https://api.github.com/repos/rust-lang/book/subscribers","subscription_url":"https://api.github.com/repos/rust-lang/book/subscription","commits_url":"https://api.github.com/repos/rust-lang/book/commits{/sha}","git_commits_url":"https://api.github.com/repos/rust-lang/book/git/commits{/sha}","comments_url":"https://api.github.com/repos/rust-lang/book/comments{/number}","issue_comment_url":"https://api.github.com/repos/rust-lang/book/issues/comments{/number}","contents_url":"https://api.github.com/repos/rust-lang/book/contents/{+path}","compare_url":"https://api.github.com/repos/rust-lang/book/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rust-lang/book/merges","archive_url":"https://api.github.com/repos/rust-lang/book/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rust-lang/book/downloads","issues_url":"https://api.github.com/repos/rust-lang/book/issues{/number}","pulls_url":"https://api.github.com/repos/rust-lang/book/pulls{/number}","milestones_url":"https://api.github.com/repos/rust-lang/book/milestones{/number}","notifications_url":"https://api.github.com/repos/rust-lang/book/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rust-lang/book/labels{/name}","releases_url":"https://api.github.com/repos/rust-lang/book/releases{/id}","deployments_url":"https://api.github.com/repos/rust-lang/book/deployments","created_at":"2015-12-11T22:49:49Z","updated_at":"2018-05-21T22:13:25Z","pushed_at":"2018-05-21T22:13:22Z","git_url":"git://github.com/rust-lang/book.git","ssh_url":"git@github.com:rust-lang/book.git","clone_url":"https://github.com/rust-lang/book.git","svn_url":"https://github.com/rust-lang/book","homepage":"https://doc.rust-lang.org/book/","size":30788,"stargazers_count":2075,"watchers_count":2075,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":622,"mirror_url":null,"archived":false,"open_issues_count":84,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":622,"open_issues":84,"watchers":2075,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rust-lang/book/pulls/1312"},"html":{"href":"https://github.com/rust-lang/book/pull/1312"},"issue":{"href":"https://api.github.com/repos/rust-lang/book/issues/1312"},"comments":{"href":"https://api.github.com/repos/rust-lang/book/issues/1312/comments"},"review_comments":{"href":"https://api.github.com/repos/rust-lang/book/pulls/1312/comments"},"review_comment":{"href":"https://api.github.com/repos/rust-lang/book/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rust-lang/book/pulls/1312/commits"},"statuses":{"href":"https://api.github.com/repos/rust-lang/book/statuses/110d251ccdc96e93d3bbe2e5a3b58edeee9641d1"}},"author_association":"NONE"}}
{"actor":{"display_login":"steveklabnik"}}