{"action":"created","issue":{"url":"https://api.github.com/repos/nix-rust/nix/issues/881","repository_url":"https://api.github.com/repos/nix-rust/nix","labels_url":"https://api.github.com/repos/nix-rust/nix/issues/881/labels{/name}","comments_url":"https://api.github.com/repos/nix-rust/nix/issues/881/comments","events_url":"https://api.github.com/repos/nix-rust/nix/issues/881/events","html_url":"https://github.com/nix-rust/nix/pull/881","id":313110393,"number":881,"title":"Implemented FromStr for Uid, Gid and Pid","user":{"login":"Kixunil","id":1178779,"avatar_url":"https://avatars2.githubusercontent.com/u/1178779?v=4","gravatar_id":"","url":"https://api.github.com/users/Kixunil","html_url":"https://github.com/Kixunil","followers_url":"https://api.github.com/users/Kixunil/followers","following_url":"https://api.github.com/users/Kixunil/following{/other_user}","gists_url":"https://api.github.com/users/Kixunil/gists{/gist_id}","starred_url":"https://api.github.com/users/Kixunil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kixunil/subscriptions","organizations_url":"https://api.github.com/users/Kixunil/orgs","repos_url":"https://api.github.com/users/Kixunil/repos","events_url":"https://api.github.com/users/Kixunil/events{/privacy}","received_events_url":"https://api.github.com/users/Kixunil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-10T22:23:50Z","updated_at":"2018-04-11T07:45:35Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/nix-rust/nix/pulls/881","html_url":"https://github.com/nix-rust/nix/pull/881","diff_url":"https://github.com/nix-rust/nix/pull/881.diff","patch_url":"https://github.com/nix-rust/nix/pull/881.patch"},"body":"Example use case: parsing command line arguments and using it in `setuig`."},"comment":{"url":"https://api.github.com/repos/nix-rust/nix/issues/comments/380359659","html_url":"https://github.com/nix-rust/nix/pull/881#issuecomment-380359659","issue_url":"https://api.github.com/repos/nix-rust/nix/issues/881","id":380359659,"user":{"login":"Kixunil","id":1178779,"avatar_url":"https://avatars2.githubusercontent.com/u/1178779?v=4","gravatar_id":"","url":"https://api.github.com/users/Kixunil","html_url":"https://github.com/Kixunil","followers_url":"https://api.github.com/users/Kixunil/followers","following_url":"https://api.github.com/users/Kixunil/following{/other_user}","gists_url":"https://api.github.com/users/Kixunil/gists{/gist_id}","starred_url":"https://api.github.com/users/Kixunil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kixunil/subscriptions","organizations_url":"https://api.github.com/users/Kixunil/orgs","repos_url":"https://api.github.com/users/Kixunil/repos","events_url":"https://api.github.com/users/Kixunil/events{/privacy}","received_events_url":"https://api.github.com/users/Kixunil/received_events","type":"User","site_admin":false},"created_at":"2018-04-11T07:45:35Z","updated_at":"2018-04-11T07:45:35Z","author_association":"CONTRIBUTOR","body":"My real-world use case is to bind a web server on port 80 (root required) and then switch UID and GID to the one specified on the command line. I now do it by parsing it as `u32` and then converting, but parsing just `Uid` is nicer and more convenient.\r\n\r\nThe ability to parse `Uid` and others also makes sense because they can be displayed too and a reasonable mapping from `&str` to `Uid` exists."}}
{"actor":{"display_login":"Kixunil"}}