You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but from what I've found, this is incorrect. I've tried to use #[from_request(via(Query))] on a struct, assuming that the corresponding rejection would be QueryRejection, but instead axum::response::Response was put in the derived impl (documented as the default at https://docs.rs/axum/0.8.1/axum/extract/derive.FromRequest.html#the-rejection).
I assume that this is a bug in the derive macro for at least FromRequestParts, but probably FromRequest too.
The text was updated successfully, but these errors were encountered:
Bug Report
Version
0.8.1
Crates
axum-macros
Description
https://docs.rs/axum/latest/axum/extract/derive.FromRequest.html#the-whole-type-at-once claims that:
but from what I've found, this is incorrect. I've tried to use
#[from_request(via(Query))]
on a struct, assuming that the corresponding rejection would beQueryRejection
, but insteadaxum::response::Response
was put in the derived impl (documented as the default at https://docs.rs/axum/0.8.1/axum/extract/derive.FromRequest.html#the-rejection).I assume that this is a bug in the derive macro for at least
FromRequestParts
, but probablyFromRequest
too.The text was updated successfully, but these errors were encountered: