{"action":"closed","issue":{"url":"https://api.github.com/repos/imatix/gsl/issues/70","labels_url":"https://api.github.com/repos/imatix/gsl/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/imatix/gsl/issues/70/comments","events_url":"https://api.github.com/repos/imatix/gsl/issues/70/events","html_url":"https://github.com/imatix/gsl/issues/70","id":59348527,"number":70,"title":"question: can I use GSL to generate Google API interfaces for Rust ?","user":{"login":"Byron","id":63622,"avatar_url":"https://avatars.githubusercontent.com/u/63622?v=3","gravatar_id":"","url":"https://api.github.com/users/Byron","html_url":"https://github.com/Byron","followers_url":"https://api.github.com/users/Byron/followers","following_url":"https://api.github.com/users/Byron/following{/other_user}","gists_url":"https://api.github.com/users/Byron/gists{/gist_id}","starred_url":"https://api.github.com/users/Byron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Byron/subscriptions","organizations_url":"https://api.github.com/users/Byron/orgs","repos_url":"https://api.github.com/users/Byron/repos","events_url":"https://api.github.com/users/Byron/events{/privacy}","received_events_url":"https://api.github.com/users/Byron/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-28T16:57:39Z","updated_at":"2015-02-28T17:04:23Z","closed_at":"2015-02-28T17:04:23Z","body":"Hi,\r\n\r\nFirst of all sorry for posting a question here, but I thought chances for an answer are better here than on Stackoverflow.\r\n\r\nAs I am learning Rust currently, I decided to implement a commandline youtube uploader. To do that, one will need access to the Youtube Web API. When looking at the google API implementation for Go, I realised that it is nearly entirely generated. The generator is written in Go, reading structured data in Json format.\r\n\r\nEven though I am implementing the first sketch manually, I want to go ahead and generate all the rest, based on the experiences I made by hand.\r\n\r\nNow the question: If you are looking at the [API description](https://github.com/google/google-api-go-client/blob/master/youtube/v3/youtube-api.json), do you think (if converted to XML), GSL will be the tool to generate valid Rust ? I believe it *should* be possible from what I have read so far, but I want to be sure.\r\n\r\nGenerally, besides traversing the XML tree, I will have to map names (like 'boolean' to 'bool'), and possibly access XML structures by name, as parts of the XML tree softly reference each other. The name-mapping part should be doable using functions/macros, but I am not entirely sure about XML access by name (which is stored in a variable).\r\n\r\nIf you give me a thumbs up, I will be happy to dive into GSL, as I have been wanting to use it for quite a while now ! A code generator is missing in my tool-set, and I totally see the point when implementing protocols and basically anything that can be described by structured data.\r\n\r\nThank you !\r\n\r\n"}}