{"action":"created","issue":{"url":"https://api.github.com/repos/hyperium/http/issues/188","repository_url":"https://api.github.com/repos/hyperium/http","labels_url":"https://api.github.com/repos/hyperium/http/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/hyperium/http/issues/188/comments","events_url":"https://api.github.com/repos/hyperium/http/issues/188/events","html_url":"https://github.com/hyperium/http/issues/188","id":304476396,"number":188,"title":"Expose error kind enum for matching?","user":{"login":"kbacha","id":2043529,"avatar_url":"https://avatars0.githubusercontent.com/u/2043529?v=4","gravatar_id":"","url":"https://api.github.com/users/kbacha","html_url":"https://github.com/kbacha","followers_url":"https://api.github.com/users/kbacha/followers","following_url":"https://api.github.com/users/kbacha/following{/other_user}","gists_url":"https://api.github.com/users/kbacha/gists{/gist_id}","starred_url":"https://api.github.com/users/kbacha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbacha/subscriptions","organizations_url":"https://api.github.com/users/kbacha/orgs","repos_url":"https://api.github.com/users/kbacha/repos","events_url":"https://api.github.com/users/kbacha/events{/privacy}","received_events_url":"https://api.github.com/users/kbacha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-12T17:52:10Z","updated_at":"2018-03-12T18:41:28Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Currently, the inner kind of the error type is unexposed which makes mapping into an SDKs error types.\r\n\r\nhttps://github.com/hyperium/http/blob/master/src/error.rs#L25-L35\r\n\r\nThis works well for displaying the description but if I want to map the result to a different error to make it consistent I cannot. For example, if I'm using both `hyper` and `http` (this may work better in the future) I cannot match a Uri parse error in hyper to that of http with ease and combine them into a single BadUri enum. In fact, it's deeper than that in that the inner types for the Uri errors actually point to another struct and error kind.\r\n\r\nI also acknowledge that I'm still new to rust and this means that I might be missing a design pattern that I should use."},"comment":{"url":"https://api.github.com/repos/hyperium/http/issues/comments/372419732","html_url":"https://github.com/hyperium/http/issues/188#issuecomment-372419732","issue_url":"https://api.github.com/repos/hyperium/http/issues/188","id":372419732,"user":{"login":"kbacha","id":2043529,"avatar_url":"https://avatars0.githubusercontent.com/u/2043529?v=4","gravatar_id":"","url":"https://api.github.com/users/kbacha","html_url":"https://github.com/kbacha","followers_url":"https://api.github.com/users/kbacha/followers","following_url":"https://api.github.com/users/kbacha/following{/other_user}","gists_url":"https://api.github.com/users/kbacha/gists{/gist_id}","starred_url":"https://api.github.com/users/kbacha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbacha/subscriptions","organizations_url":"https://api.github.com/users/kbacha/orgs","repos_url":"https://api.github.com/users/kbacha/repos","events_url":"https://api.github.com/users/kbacha/events{/privacy}","received_events_url":"https://api.github.com/users/kbacha/received_events","type":"User","site_admin":false},"created_at":"2018-03-12T18:41:28Z","updated_at":"2018-03-12T18:41:28Z","author_association":"CONTRIBUTOR","body":"Ah, that could work. And that's what I'm doing with the URI in this case."}}
{"actor":{"display_login":"kbacha"}}