{"action":"created","issue":{"url":"https://api.github.com/repos/actix/actix-derive/issues/1","repository_url":"https://api.github.com/repos/actix/actix-derive","labels_url":"https://api.github.com/repos/actix/actix-derive/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/actix/actix-derive/issues/1/comments","events_url":"https://api.github.com/repos/actix/actix-derive/issues/1/events","html_url":"https://github.com/actix/actix-derive/issues/1","id":274591910,"node_id":"MDU6SXNzdWUyNzQ1OTE5MTA=","number":1,"title":"#[derive(Actor)]","user":{"login":"callym","id":8853568,"node_id":"MDQ6VXNlcjg4NTM1Njg=","avatar_url":"https://avatars1.githubusercontent.com/u/8853568?v=4","gravatar_id":"","url":"https://api.github.com/users/callym","html_url":"https://github.com/callym","followers_url":"https://api.github.com/users/callym/followers","following_url":"https://api.github.com/users/callym/following{/other_user}","gists_url":"https://api.github.com/users/callym/gists{/gist_id}","starred_url":"https://api.github.com/users/callym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/callym/subscriptions","organizations_url":"https://api.github.com/users/callym/orgs","repos_url":"https://api.github.com/users/callym/repos","events_url":"https://api.github.com/users/callym/events{/privacy}","received_events_url":"https://api.github.com/users/callym/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-11-16T17:05:11Z","updated_at":"2019-03-12T11:09:46Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Should we add a custom derive for the `Actor` trait?\r\n\r\n```rust\r\n#[derive(Actor)]\r\nstruct SumActor;\r\n```\r\n\r\nWhich expands to:\r\n\r\n```rust\r\nimpl Actor for SumActor {\r\n    type Context = Context<Self>;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/actix/actix-derive/issues/comments/471956994","html_url":"https://github.com/actix/actix-derive/issues/1#issuecomment-471956994","issue_url":"https://api.github.com/repos/actix/actix-derive/issues/1","id":471956994,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3MTk1Njk5NA==","user":{"login":"najamelan","id":449589,"node_id":"MDQ6VXNlcjQ0OTU4OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/449589?v=4","gravatar_id":"","url":"https://api.github.com/users/najamelan","html_url":"https://github.com/najamelan","followers_url":"https://api.github.com/users/najamelan/followers","following_url":"https://api.github.com/users/najamelan/following{/other_user}","gists_url":"https://api.github.com/users/najamelan/gists{/gist_id}","starred_url":"https://api.github.com/users/najamelan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/najamelan/subscriptions","organizations_url":"https://api.github.com/users/najamelan/orgs","repos_url":"https://api.github.com/users/najamelan/repos","events_url":"https://api.github.com/users/najamelan/events{/privacy}","received_events_url":"https://api.github.com/users/najamelan/received_events","type":"User","site_admin":false},"created_at":"2019-03-12T11:09:46Z","updated_at":"2019-03-12T11:09:46Z","author_association":"NONE","body":"@fafhrd91  I would really appreciate if we could implement this. \"To answer What's the point?\" -> The same as for `#[ derive( Message )]`. It only saves 3 lines **per Actor**, so in serious project it saves like 300 lines.\r\n\r\nAs for the context. It seems the same situation as `Message` with Result, and I would stick to consistent implementation with message, in the lines of: `#[ctype=HttpContext]`. It doesn't cost anything, but it might shave a few hundred lines of a project. And to be honest, I have alot of actors, but never used another context than default."}}
{"actor":{"display_login":"najamelan"}}