{"action":"closed","issue":{"url":"https://api.github.com/repos/acmcarther/github_v3_rust/issues/1","labels_url":"https://api.github.com/repos/acmcarther/github_v3_rust/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/acmcarther/github_v3_rust/issues/1/comments","events_url":"https://api.github.com/repos/acmcarther/github_v3_rust/issues/1/events","html_url":"https://github.com/acmcarther/github_v3_rust/issues/1","id":102851236,"number":1,"title":"Refactor decoding and encoding for Enums","user":{"login":"acmcarther","id":1660129,"avatar_url":"https://avatars.githubusercontent.com/u/1660129?v=3","gravatar_id":"","url":"https://api.github.com/users/acmcarther","html_url":"https://github.com/acmcarther","followers_url":"https://api.github.com/users/acmcarther/followers","following_url":"https://api.github.com/users/acmcarther/following{/other_user}","gists_url":"https://api.github.com/users/acmcarther/gists{/gist_id}","starred_url":"https://api.github.com/users/acmcarther/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acmcarther/subscriptions","organizations_url":"https://api.github.com/users/acmcarther/orgs","repos_url":"https://api.github.com/users/acmcarther/repos","events_url":"https://api.github.com/users/acmcarther/events{/privacy}","received_events_url":"https://api.github.com/users/acmcarther/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-24T17:42:24Z","updated_at":"2015-09-28T14:16:00Z","closed_at":"2015-09-28T14:16:00Z","body":"Many enums in the code base have a string representation that does not match their name. The decoder for these examples is pretty verbose, but each decoder has a lot of common behavior. We should be able to refactor the decoder for this into a function/macro taking Enum::Value -> string pairs that build the decoder and encoder."}}