Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Provide a serde deserializer. #4

Closed
leoschwarz opened this issue Apr 14, 2018 · 2 comments
Closed

Provide a serde deserializer. #4

leoschwarz opened this issue Apr 14, 2018 · 2 comments
Labels

Comments

@leoschwarz
Copy link
Owner

Other than how to annotate the paths for every instance I think it might be really nice if there was an easy way to integrate this code with serde. One downside is that it might make the implementation a bit opinionated, but the current APIs for parsing in general are and always offer the possibility to read a string and then do it yourself, so I guess it should not be a problem either.

Probably the only actual problem is how to annotate the XPath?

@leoschwarz
Copy link
Owner Author

This could be done mostly with serde serde(rename = "xpath") attributes.

The main remaining question is how to connect FromXml and Deserialize.

@leoschwarz leoschwarz changed the title Consider serde integration. Provide a serde deserializer. Apr 20, 2018
@leoschwarz
Copy link
Owner Author

One thing that would be interesting here as well is how well this could be integrated with existing serde XML crates.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant