mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-21 22:56:46 +01:00
59a2960e42
This commit introduces another `extract::path::ErrorKind` variant that captures the
serde error nominally captured through the `serde:🇩🇪:Error` trait impl on `PathDeserializeError`.
We augment the deserialization error with the captured (key, value), allowing `extract::Path`, and wrapping
extractors, to gain programmatic access to the key name, and attempted deserialized value.
The `PathDeserializationError::custom` is used two places in addition to capture the deserialization error.
These usages should still be unaffected.
Co-authored-by: David Mládek <david.mladek.cz@gmail.com>
|
||
---|---|---|
.. | ||
body | ||
extract | ||
handler | ||
response | ||
routing | ||
either.rs | ||
json_lines.rs | ||
lib.rs | ||
middleware.rs | ||
protobuf.rs | ||
typed_header.rs |