We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Value
T: Deserialize
If I have a Value, how can I convert this to a type which implements serde::Deserialize?
serde::Deserialize
Libraries like serde_json have to_value and from_value functions for this, but I don't see a way to do this currently with cbor4ii.
to_value
from_value
How should I do this? Am I required to serialize the value to a Vec<u8> and deserialize again?
Vec<u8>
The text was updated successfully, but these errors were encountered:
We need to implement Deserializer trait for Value, which shouldn't be hard. but I don't have time to implement it in short term.
Deserializer
Welcome PR :)
Sorry, something went wrong.
No branches or pull requests
If I have a
Value
, how can I convert this to a type which implementsserde::Deserialize
?Libraries like serde_json have
to_value
andfrom_value
functions for this, but I don't see a way to do this currently with cbor4ii.How should I do this? Am I required to serialize the value to a
Vec<u8>
and deserialize again?The text was updated successfully, but these errors were encountered: