{"action":"created","comment":{"url":"https://api.github.com/repos/ruma/ruma/pulls/comments/88322941","pull_request_review_id":8900339,"id":88322941,"diff_hunk":"@@ -0,0 +1,41 @@\n+//! Endpoints for room discovery.\n+\n+use modifier::SerializableResponse;\n+use iron::{Chain, Handler, IronError, IronResult, Plugin, Request, Response, status};\n+\n+#[derive(Clone, Debug, Serialize)]\n+pub struct PublicRoomsResponse {\n+    pub chunk: Option<Vec<PublicRoomsChunk>>, // A paginated chunk of public rooms.","path":"src/api/r0/room_discovery.rs","position":8,"original_position":8,"commit_id":"cb59f2c4ab39f1bdf96bf30395ec342661081934","original_commit_id":"cb59f2c4ab39f1bdf96bf30395ec342661081934","user":{"login":"mujx","id":6430350,"avatar_url":"https://avatars.githubusercontent.com/u/6430350?v=3","gravatar_id":"","url":"https://api.github.com/users/mujx","html_url":"https://github.com/mujx","followers_url":"https://api.github.com/users/mujx/followers","following_url":"https://api.github.com/users/mujx/following{/other_user}","gists_url":"https://api.github.com/users/mujx/gists{/gist_id}","starred_url":"https://api.github.com/users/mujx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mujx/subscriptions","organizations_url":"https://api.github.com/users/mujx/orgs","repos_url":"https://api.github.com/users/mujx/repos","events_url":"https://api.github.com/users/mujx/events{/privacy}","received_events_url":"https://api.github.com/users/mujx/received_events","type":"User","site_admin":false},"body":"Put the documentation string above, like so: \r\n```\r\n/// A paginated chunk of public rooms.\r\npub chunk: Option<Vec<PublicRoomsChunk>>,\r\n```\r\nAlso use the documentation string `///` instead of `//` when writing docs. ","created_at":"2016-11-16T20:22:44Z","updated_at":"2016-11-16T20:38:46Z","html_url":"https://github.com/ruma/ruma/pull/111#discussion_r88322941","pull_request_url":"https://api.github.com/repos/ruma/ruma/pulls/111","_links":{"self":{"href":"https://api.github.com/repos/ruma/ruma/pulls/comments/88322941"},"html":{"href":"https://github.com/ruma/ruma/pull/111#discussion_r88322941"},"pull_request":{"href":"https://api.github.com/repos/ruma/ruma/pulls/111"}}},"pull_request":{"url":"https://api.github.com/repos/ruma/ruma/pulls/111","id":94025859,"html_url":"https://github.com/ruma/ruma/pull/111","diff_url":"https://github.com/ruma/ruma/pull/111.diff","patch_url":"https://github.com/ruma/ruma/pull/111.patch","issue_url":"https://api.github.com/repos/ruma/ruma/issues/111","number":111,"state":"open","locked":false,"title":"[WIP] Add /publicRooms endpoint","user":{"login":"sphinxc0re","id":3702016,"avatar_url":"https://avatars.githubusercontent.com/u/3702016?v=3","gravatar_id":"","url":"https://api.github.com/users/sphinxc0re","html_url":"https://github.com/sphinxc0re","followers_url":"https://api.github.com/users/sphinxc0re/followers","following_url":"https://api.github.com/users/sphinxc0re/following{/other_user}","gists_url":"https://api.github.com/users/sphinxc0re/gists{/gist_id}","starred_url":"https://api.github.com/users/sphinxc0re/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sphinxc0re/subscriptions","organizations_url":"https://api.github.com/users/sphinxc0re/orgs","repos_url":"https://api.github.com/users/sphinxc0re/repos","events_url":"https://api.github.com/users/sphinxc0re/events{/privacy}","received_events_url":"https://api.github.com/users/sphinxc0re/received_events","type":"User","site_admin":false},"body":"This is just a start to see if I got this the right way","created_at":"2016-11-16T18:46:36Z","updated_at":"2016-11-16T20:38:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"573dddb4ed517a7fa92bd407c893f04c1a2108b5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ruma/ruma/pulls/111/commits","review_comments_url":"https://api.github.com/repos/ruma/ruma/pulls/111/comments","review_comment_url":"https://api.github.com/repos/ruma/ruma/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ruma/ruma/issues/111/comments","statuses_url":"https://api.github.com/repos/ruma/ruma/statuses/cb59f2c4ab39f1bdf96bf30395ec342661081934","head":{"label":"sphinxc0re:feature/public-rooms","ref":"feature/public-rooms","sha":"cb59f2c4ab39f1bdf96bf30395ec342661081934","user":{"login":"sphinxc0re","id":3702016,"avatar_url":"https://avatars.githubusercontent.com/u/3702016?v=3","gravatar_id":"","url":"https://api.github.com/users/sphinxc0re","html_url":"https://github.com/sphinxc0re","followers_url":"https://api.github.com/users/sphinxc0re/followers","following_url":"https://api.github.com/users/sphinxc0re/following{/other_user}","gists_url":"https://api.github.com/users/sphinxc0re/gists{/gist_id}","starred_url":"https://api.github.com/users/sphinxc0re/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sphinxc0re/subscriptions","organizations_url":"https://api.github.com/users/sphinxc0re/orgs","repos_url":"https://api.github.com/users/sphinxc0re/repos","events_url":"https://api.github.com/users/sphinxc0re/events{/privacy}","received_events_url":"https://api.github.com/users/sphinxc0re/received_events","type":"User","site_admin":false},"repo":{"id":73855474,"name":"ruma","full_name":"sphinxc0re/ruma","owner":{"login":"sphinxc0re","id":3702016,"avatar_url":"https://avatars.githubusercontent.com/u/3702016?v=3","gravatar_id":"","url":"https://api.github.com/users/sphinxc0re","html_url":"https://github.com/sphinxc0re","followers_url":"https://api.github.com/users/sphinxc0re/followers","following_url":"https://api.github.com/users/sphinxc0re/following{/other_user}","gists_url":"https://api.github.com/users/sphinxc0re/gists{/gist_id}","starred_url":"https://api.github.com/users/sphinxc0re/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sphinxc0re/subscriptions","organizations_url":"https://api.github.com/users/sphinxc0re/orgs","repos_url":"https://api.github.com/users/sphinxc0re/repos","events_url":"https://api.github.com/users/sphinxc0re/events{/privacy}","received_events_url":"https://api.github.com/users/sphinxc0re/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sphinxc0re/ruma","description":"A Matrix homeserver client API written in Rust.","fork":true,"url":"https://api.github.com/repos/sphinxc0re/ruma","forks_url":"https://api.github.com/repos/sphinxc0re/ruma/forks","keys_url":"https://api.github.com/repos/sphinxc0re/ruma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sphinxc0re/ruma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sphinxc0re/ruma/teams","hooks_url":"https://api.github.com/repos/sphinxc0re/ruma/hooks","issue_events_url":"https://api.github.com/repos/sphinxc0re/ruma/issues/events{/number}","events_url":"https://api.github.com/repos/sphinxc0re/ruma/events","assignees_url":"https://api.github.com/repos/sphinxc0re/ruma/assignees{/user}","branches_url":"https://api.github.com/repos/sphinxc0re/ruma/branches{/branch}","tags_url":"https://api.github.com/repos/sphinxc0re/ruma/tags","blobs_url":"https://api.github.com/repos/sphinxc0re/ruma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sphinxc0re/ruma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sphinxc0re/ruma/git/refs{/sha}","trees_url":"https://api.github.com/repos/sphinxc0re/ruma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sphinxc0re/ruma/statuses/{sha}","languages_url":"https://api.github.com/repos/sphinxc0re/ruma/languages","stargazers_url":"https://api.github.com/repos/sphinxc0re/ruma/stargazers","contributors_url":"https://api.github.com/repos/sphinxc0re/ruma/contributors","subscribers_url":"https://api.github.com/repos/sphinxc0re/ruma/subscribers","subscription_url":"https://api.github.com/repos/sphinxc0re/ruma/subscription","commits_url":"https://api.github.com/repos/sphinxc0re/ruma/commits{/sha}","git_commits_url":"https://api.github.com/repos/sphinxc0re/ruma/git/commits{/sha}","comments_url":"https://api.github.com/repos/sphinxc0re/ruma/comments{/number}","issue_comment_url":"https://api.github.com/repos/sphinxc0re/ruma/issues/comments{/number}","contents_url":"https://api.github.com/repos/sphinxc0re/ruma/contents/{+path}","compare_url":"https://api.github.com/repos/sphinxc0re/ruma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sphinxc0re/ruma/merges","archive_url":"https://api.github.com/repos/sphinxc0re/ruma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sphinxc0re/ruma/downloads","issues_url":"https://api.github.com/repos/sphinxc0re/ruma/issues{/number}","pulls_url":"https://api.github.com/repos/sphinxc0re/ruma/pulls{/number}","milestones_url":"https://api.github.com/repos/sphinxc0re/ruma/milestones{/number}","notifications_url":"https://api.github.com/repos/sphinxc0re/ruma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sphinxc0re/ruma/labels{/name}","releases_url":"https://api.github.com/repos/sphinxc0re/ruma/releases{/id}","deployments_url":"https://api.github.com/repos/sphinxc0re/ruma/deployments","created_at":"2016-11-15T21:10:54Z","updated_at":"2016-11-15T21:10:55Z","pushed_at":"2016-11-16T18:45:51Z","git_url":"git://github.com/sphinxc0re/ruma.git","ssh_url":"git@github.com:sphinxc0re/ruma.git","clone_url":"https://github.com/sphinxc0re/ruma.git","svn_url":"https://github.com/sphinxc0re/ruma","homepage":"https://www.ruma.io/","size":378,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ruma:master","ref":"master","sha":"259d93e0f3b0df80f06399dd346e76807767d1b8","user":{"login":"ruma","id":16043271,"avatar_url":"https://avatars.githubusercontent.com/u/16043271?v=3","gravatar_id":"","url":"https://api.github.com/users/ruma","html_url":"https://github.com/ruma","followers_url":"https://api.github.com/users/ruma/followers","following_url":"https://api.github.com/users/ruma/following{/other_user}","gists_url":"https://api.github.com/users/ruma/gists{/gist_id}","starred_url":"https://api.github.com/users/ruma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruma/subscriptions","organizations_url":"https://api.github.com/users/ruma/orgs","repos_url":"https://api.github.com/users/ruma/repos","events_url":"https://api.github.com/users/ruma/events{/privacy}","received_events_url":"https://api.github.com/users/ruma/received_events","type":"Organization","site_admin":false},"repo":{"id":47059992,"name":"ruma","full_name":"ruma/ruma","owner":{"login":"ruma","id":16043271,"avatar_url":"https://avatars.githubusercontent.com/u/16043271?v=3","gravatar_id":"","url":"https://api.github.com/users/ruma","html_url":"https://github.com/ruma","followers_url":"https://api.github.com/users/ruma/followers","following_url":"https://api.github.com/users/ruma/following{/other_user}","gists_url":"https://api.github.com/users/ruma/gists{/gist_id}","starred_url":"https://api.github.com/users/ruma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruma/subscriptions","organizations_url":"https://api.github.com/users/ruma/orgs","repos_url":"https://api.github.com/users/ruma/repos","events_url":"https://api.github.com/users/ruma/events{/privacy}","received_events_url":"https://api.github.com/users/ruma/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ruma/ruma","description":"A Matrix homeserver client API written in Rust.","fork":false,"url":"https://api.github.com/repos/ruma/ruma","forks_url":"https://api.github.com/repos/ruma/ruma/forks","keys_url":"https://api.github.com/repos/ruma/ruma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ruma/ruma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ruma/ruma/teams","hooks_url":"https://api.github.com/repos/ruma/ruma/hooks","issue_events_url":"https://api.github.com/repos/ruma/ruma/issues/events{/number}","events_url":"https://api.github.com/repos/ruma/ruma/events","assignees_url":"https://api.github.com/repos/ruma/ruma/assignees{/user}","branches_url":"https://api.github.com/repos/ruma/ruma/branches{/branch}","tags_url":"https://api.github.com/repos/ruma/ruma/tags","blobs_url":"https://api.github.com/repos/ruma/ruma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ruma/ruma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ruma/ruma/git/refs{/sha}","trees_url":"https://api.github.com/repos/ruma/ruma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ruma/ruma/statuses/{sha}","languages_url":"https://api.github.com/repos/ruma/ruma/languages","stargazers_url":"https://api.github.com/repos/ruma/ruma/stargazers","contributors_url":"https://api.github.com/repos/ruma/ruma/contributors","subscribers_url":"https://api.github.com/repos/ruma/ruma/subscribers","subscription_url":"https://api.github.com/repos/ruma/ruma/subscription","commits_url":"https://api.github.com/repos/ruma/ruma/commits{/sha}","git_commits_url":"https://api.github.com/repos/ruma/ruma/git/commits{/sha}","comments_url":"https://api.github.com/repos/ruma/ruma/comments{/number}","issue_comment_url":"https://api.github.com/repos/ruma/ruma/issues/comments{/number}","contents_url":"https://api.github.com/repos/ruma/ruma/contents/{+path}","compare_url":"https://api.github.com/repos/ruma/ruma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ruma/ruma/merges","archive_url":"https://api.github.com/repos/ruma/ruma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ruma/ruma/downloads","issues_url":"https://api.github.com/repos/ruma/ruma/issues{/number}","pulls_url":"https://api.github.com/repos/ruma/ruma/pulls{/number}","milestones_url":"https://api.github.com/repos/ruma/ruma/milestones{/number}","notifications_url":"https://api.github.com/repos/ruma/ruma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ruma/ruma/labels{/name}","releases_url":"https://api.github.com/repos/ruma/ruma/releases{/id}","deployments_url":"https://api.github.com/repos/ruma/ruma/deployments","created_at":"2015-11-29T10:59:46Z","updated_at":"2016-11-16T14:28:00Z","pushed_at":"2016-11-16T18:46:36Z","git_url":"git://github.com/ruma/ruma.git","ssh_url":"git@github.com:ruma/ruma.git","clone_url":"https://github.com/ruma/ruma.git","svn_url":"https://github.com/ruma/ruma","homepage":"https://www.ruma.io/","size":398,"stargazers_count":424,"watchers_count":424,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":68,"forks":17,"open_issues":68,"watchers":424,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ruma/ruma/pulls/111"},"html":{"href":"https://github.com/ruma/ruma/pull/111"},"issue":{"href":"https://api.github.com/repos/ruma/ruma/issues/111"},"comments":{"href":"https://api.github.com/repos/ruma/ruma/issues/111/comments"},"review_comments":{"href":"https://api.github.com/repos/ruma/ruma/pulls/111/comments"},"review_comment":{"href":"https://api.github.com/repos/ruma/ruma/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ruma/ruma/pulls/111/commits"},"statuses":{"href":"https://api.github.com/repos/ruma/ruma/statuses/cb59f2c4ab39f1bdf96bf30395ec342661081934"}}}}
{"actor":{"display_login":"mujx"}}