{"action":"opened","issue":{"url":"https://api.github.com/repos/matthiasbeyer/imag/issues/138","labels_url":"https://api.github.com/repos/matthiasbeyer/imag/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/matthiasbeyer/imag/issues/138/comments","events_url":"https://api.github.com/repos/matthiasbeyer/imag/issues/138/events","html_url":"https://github.com/matthiasbeyer/imag/issues/138","id":128335834,"number":138,"title":"[RFC] [Store]: Entry-getter to iterate over entries of a module","user":{"login":"matthiasbeyer","id":427866,"avatar_url":"https://avatars.githubusercontent.com/u/427866?v=3","gravatar_id":"","url":"https://api.github.com/users/matthiasbeyer","html_url":"https://github.com/matthiasbeyer","followers_url":"https://api.github.com/users/matthiasbeyer/followers","following_url":"https://api.github.com/users/matthiasbeyer/following{/other_user}","gists_url":"https://api.github.com/users/matthiasbeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiasbeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiasbeyer/subscriptions","organizations_url":"https://api.github.com/users/matthiasbeyer/orgs","repos_url":"https://api.github.com/users/matthiasbeyer/repos","events_url":"https://api.github.com/users/matthiasbeyer/events{/privacy}","received_events_url":"https://api.github.com/users/matthiasbeyer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/matthiasbeyer/imag/labels/nochange/rfc","name":"nochange/rfc","color":"fef2c0"},{"url":"https://api.github.com/repos/matthiasbeyer/imag/labels/part/libimagstore","name":"part/libimagstore","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-23T16:03:36Z","updated_at":"2016-01-23T16:03:36Z","closed_at":null,"body":"Problem:\r\n\r\nI'm a module which allowes the user to tag entries. I want to offer an option \"list all entries with tag 'X'\" to the user. I have no possibility to load all entries which belong to me.\r\n\r\nThe proposed solution:\r\n\r\nProvide a `Store::retrieve_for_module()` which allows to iterate over all entries for given module. Version foo should be considered, of course.\r\n\r\nSuch an interface would look something like this:\r\n\r\n```rust\r\npub fn retrieve_for_module(&self, mod_name: &str, mod_version: &str) -> FileLockEntryIterator {\r\n    unimplemented!()\r\n}\r\n```"}}