{"action":"created","issue":{"url":"https://api.github.com/repos/stepancheg/rust-protobuf/issues/149","repository_url":"https://api.github.com/repos/stepancheg/rust-protobuf","labels_url":"https://api.github.com/repos/stepancheg/rust-protobuf/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/stepancheg/rust-protobuf/issues/149/comments","events_url":"https://api.github.com/repos/stepancheg/rust-protobuf/issues/149/events","html_url":"https://github.com/stepancheg/rust-protobuf/pull/149","id":148872442,"number":149,"title":"generate service stubs","user":{"login":"flier","id":61618,"avatar_url":"https://avatars.githubusercontent.com/u/61618?v=3","gravatar_id":"","url":"https://api.github.com/users/flier","html_url":"https://github.com/flier","followers_url":"https://api.github.com/users/flier/followers","following_url":"https://api.github.com/users/flier/following{/other_user}","gists_url":"https://api.github.com/users/flier/gists{/gist_id}","starred_url":"https://api.github.com/users/flier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flier/subscriptions","organizations_url":"https://api.github.com/users/flier/orgs","repos_url":"https://api.github.com/users/flier/repos","events_url":"https://api.github.com/users/flier/events{/privacy}","received_events_url":"https://api.github.com/users/flier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-16T17:24:15Z","updated_at":"2016-04-16T19:26:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/stepancheg/rust-protobuf/pulls/149","html_url":"https://github.com/stepancheg/rust-protobuf/pull/149","diff_url":"https://github.com/stepancheg/rust-protobuf/pull/149.diff","patch_url":"https://github.com/stepancheg/rust-protobuf/pull/149.patch"},"body":"generate service stubs base on protobuf service and rpc.\r\n\r\n```\r\n\r\n// The greeting service definition.\r\nservice Greeter {\r\n  // Sends a greeting\r\n  rpc SayHello (HelloRequest) returns (HelloReply) {}\r\n}\r\n\r\n// The request message containing the user's name.\r\nmessage HelloRequest {\r\n  required string name = 1;\r\n}\r\n\r\n// The response message containing the greetings\r\nmessage HelloReply {\r\n  required string message = 1;\r\n}\r\n```\r\n\r\n```rust\r\n\r\npub trait Greeter {\r\n    fn SayHello (req: HelloRequest) -> ::protobuf::ProtobufResult<HelloReply>;\r\n}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/stepancheg/rust-protobuf/issues/comments/210877806","html_url":"https://github.com/stepancheg/rust-protobuf/pull/149#issuecomment-210877806","issue_url":"https://api.github.com/repos/stepancheg/rust-protobuf/issues/149","id":210877806,"user":{"login":"stepancheg","id":28969,"avatar_url":"https://avatars.githubusercontent.com/u/28969?v=3","gravatar_id":"","url":"https://api.github.com/users/stepancheg","html_url":"https://github.com/stepancheg","followers_url":"https://api.github.com/users/stepancheg/followers","following_url":"https://api.github.com/users/stepancheg/following{/other_user}","gists_url":"https://api.github.com/users/stepancheg/gists{/gist_id}","starred_url":"https://api.github.com/users/stepancheg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stepancheg/subscriptions","organizations_url":"https://api.github.com/users/stepancheg/orgs","repos_url":"https://api.github.com/users/stepancheg/repos","events_url":"https://api.github.com/users/stepancheg/events{/privacy}","received_events_url":"https://api.github.com/users/stepancheg/received_events","type":"User","site_admin":false},"created_at":"2016-04-16T19:26:00Z","updated_at":"2016-04-16T19:26:00Z","body":"Why do you need service stubs?"}}