-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Struct namespaces with Serde #218
Comments
I do not know how to handle this here, but I've used yaserde crate for such @Richterrettich |
This would be a nice feature indeed. Unfortunately I don't have much time but I'd be happy to integrate it if someone finds the time to do it. |
I'd love to see this happen, but I've no idea where to even start. What kind of macro would |
Is there any workaround for this, or |
No workaround if you want serde. I wrote my own parser with https://docs.rs/quick-xml/latest/quick_xml/reader/struct.NsReader.html
|
If you don't want to write deserialization code manually, you could look at xmlserde. Support for namespaces for serde is not an easy task, unfortunately. |
Whoever picks this up, consider starting from #466 |
Hi,
it would be really cool to have a feature to define common namespaces for structs using serde. Something like this:
resulting in:
Background
I sometimes face (old) API's that requrie XML to be structured in a way similar to the given example. They use namespaces to distinguish between entities to form some sort of inheritance tree.
A feature like this would make interacting with these kind of API's very easy.
The text was updated successfully, but these errors were encountered: