{"action":"created","issue":{"url":"https://api.github.com/repos/exercism/xrust/issues/64","labels_url":"https://api.github.com/repos/exercism/xrust/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/exercism/xrust/issues/64/comments","events_url":"https://api.github.com/repos/exercism/xrust/issues/64/events","html_url":"https://github.com/exercism/xrust/issues/64","id":125978983,"number":64,"title":"Function interfaces for tests","user":{"login":"andrey-gvrd","id":5842980,"avatar_url":"https://avatars.githubusercontent.com/u/5842980?v=3","gravatar_id":"","url":"https://api.github.com/users/andrey-gvrd","html_url":"https://github.com/andrey-gvrd","followers_url":"https://api.github.com/users/andrey-gvrd/followers","following_url":"https://api.github.com/users/andrey-gvrd/following{/other_user}","gists_url":"https://api.github.com/users/andrey-gvrd/gists{/gist_id}","starred_url":"https://api.github.com/users/andrey-gvrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrey-gvrd/subscriptions","organizations_url":"https://api.github.com/users/andrey-gvrd/orgs","repos_url":"https://api.github.com/users/andrey-gvrd/repos","events_url":"https://api.github.com/users/andrey-gvrd/events{/privacy}","received_events_url":"https://api.github.com/users/andrey-gvrd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-11T16:15:41Z","updated_at":"2016-01-11T20:41:17Z","closed_at":null,"body":"I was having a lot of issues trying to guess what kind of object is required to be passed in the allergies exercise.\r\nI figured this is what it looked like:\r\n\r\n    pub struct Allergies {\r\n        score: i32,\r\n    }\r\n\r\n    impl Allergies {\r\n        pub fn new(n: i32) -> Allergies {\r\n            Allergies { score: 0 }\r\n        }\r\n    }\r\n\r\nSo I was basically trying to figure out what the `Allergies(0)` function did and where it came from.\r\nIn the end I had to resort to looking into the solution in `example.rs`, which is kind of upsetting.\r\n\r\nTurns out the struct has the form `pub struct Allergies(pub usize);` and the `Allergies(0)` is... I still don't understand what it is and where it comes from.\r\n\r\nDo you think there is a way to expose the interface without giving out the solution?"},"comment":{"url":"https://api.github.com/repos/exercism/xrust/issues/comments/170683551","html_url":"https://github.com/exercism/xrust/issues/64#issuecomment-170683551","issue_url":"https://api.github.com/repos/exercism/xrust/issues/64","id":170683551,"user":{"login":"kytrinyx","id":276834,"avatar_url":"https://avatars.githubusercontent.com/u/276834?v=3","gravatar_id":"","url":"https://api.github.com/users/kytrinyx","html_url":"https://github.com/kytrinyx","followers_url":"https://api.github.com/users/kytrinyx/followers","following_url":"https://api.github.com/users/kytrinyx/following{/other_user}","gists_url":"https://api.github.com/users/kytrinyx/gists{/gist_id}","starred_url":"https://api.github.com/users/kytrinyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kytrinyx/subscriptions","organizations_url":"https://api.github.com/users/kytrinyx/orgs","repos_url":"https://api.github.com/users/kytrinyx/repos","events_url":"https://api.github.com/users/kytrinyx/events{/privacy}","received_events_url":"https://api.github.com/users/kytrinyx/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T20:41:17Z","updated_at":"2016-01-11T20:41:17Z","body":"@NobbZ I called you because you've commented a lot in the rust track :)"}}