Skip to content

No way to use DeserializeSeed when deserializing from Reader #533

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

Open
gmilleramilar opened this issue May 15, 2025 · 0 comments
Open

No way to use DeserializeSeed when deserializing from Reader #533

gmilleramilar opened this issue May 15, 2025 · 0 comments
Assignees
Labels

Comments

@gmilleramilar
Copy link

As far as I can tell, The only Deserializer made public through the API is one that reads from a pre-parse BSON value:

https://docs.rs/bson/2.14.0/bson/struct.Deserializer.html

I have a use case where I'm doing a custom decoding (from bytes), and would like to use a serde::de::DeserializeSeed. However this is impossible, because the raw Deserializer is hidden behind methods like from_reader().

Could a raw (bytes) Deserializer be made public?

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

No branches or pull requests

2 participants