Rework Form and Query rejections (#1496)

* Change `FailedToDeserializeQueryString` rejection for `Form`

Its now called `FailedToDeserializeForm`.

* changelog

* Make dedicate rejection type for axum-extra's `Form`

* update trybuild test

* Make dedicate rejection type for axum-extra's `Query`
This commit is contained in:
David Pedersen
2022-11-08 20:31:06 +00:00
committed by GitHub
parent 8d6313afa0
commit e0ef641e5f
8 changed files with 119 additions and 82 deletions
+2 -2
View File
@@ -25,10 +25,10 @@ pub use self::cookie::PrivateCookieJar;
pub use self::cookie::SignedCookieJar;
#[cfg(feature = "form")]
pub use self::form::Form;
pub use self::form::{Form, FormRejection};
#[cfg(feature = "query")]
pub use self::query::Query;
pub use self::query::{Query, QueryRejection};
#[cfg(feature = "json-lines")]
#[doc(no_inline)]