Skip to content
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

Support deserialization from an owned value #7

Open
thomaseizinger opened this issue Apr 1, 2020 · 0 comments · May be fixed by #8
Open

Support deserialization from an owned value #7

thomaseizinger opened this issue Apr 1, 2020 · 0 comments · May be fixed by #8

Comments

@thomaseizinger
Copy link

First, thanks for this awesome crate! It makes working with hex-encoded data really a breeze :)

We've ran into a nasty problem though when working with owned data.
Concretely, given an owned serde_json::Value, trying to deserialize a struct that uses SerHex with serde_json::from_value fails because the underlying BytesVisitor that is used only supports borrowed data.

I am working on a patch that supports owned data by implementing a custom visitor.

@thomaseizinger thomaseizinger linked a pull request Apr 1, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant