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
serde_spanned
I'd like to be able to emit Spanned in rfc822-like. I think an API like this could work:
Spanned
impl<''de> Deserializer<'de> for MyDeserializer { // ... fn deserialize_struct<V: Visitor<'de>>(name: &'static str, fields: &'static [&'static str], visitor: V) -> Result<V::Value, Self::Error> { if serde_spanned::is_spanned(name, fields) { serde_spanned::emit_spanned(self, self.span) } else { // normal deserialization here } } }
The text was updated successfully, but these errors were encountered:
Could you try patching in #635 and seeing if it works for you?
patch
Sorry, something went wrong.
feat(spanned): Expose SpannedDeserializer
73388e1
Fixes toml-rs#634
126767e
Thanks for quick response! I don't expect to be able to do it very soon but will try not to lag too much.
Successfully merging a pull request may close this issue.
I'd like to be able to emit
Spanned
in rfc822-like. I think an API like this could work:The text was updated successfully, but these errors were encountered: