axum/axum-macros/tests/from_request/fail
David Pedersen 911c4a788e
Support opt-out of extra derived traits for rejections for #[derive(FromRequest)] (#729)
* Handle structs without fields

* Support opt-out of derived rejection traits

* Handle duplicate opt outs

* Improve error if opting out of `Display` or `Debug` but not `Error`

* document `rejection_derive`

* Handle using both `via` and `rejection_derive`

* don't derive debug for `RejectionDeriveOptOuts`

* Update axum-macros/src/from_request.rs

Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>

Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
2022-01-28 09:54:38 +00:00
..
derive_opt_out_debug_and_display_without_error.rs Support opt-out of extra derived traits for rejections for #[derive(FromRequest)] (#729) 2022-01-28 09:54:38 +00:00
derive_opt_out_debug_and_display_without_error.stderr Support opt-out of extra derived traits for rejections for #[derive(FromRequest)] (#729) 2022-01-28 09:54:38 +00:00
derive_opt_out_debug_without_error.rs Support opt-out of extra derived traits for rejections for #[derive(FromRequest)] (#729) 2022-01-28 09:54:38 +00:00
derive_opt_out_debug_without_error.stderr Support opt-out of extra derived traits for rejections for #[derive(FromRequest)] (#729) 2022-01-28 09:54:38 +00:00
derive_opt_out_display_without_error.rs Support opt-out of extra derived traits for rejections for #[derive(FromRequest)] (#729) 2022-01-28 09:54:38 +00:00
derive_opt_out_display_without_error.stderr Support opt-out of extra derived traits for rejections for #[derive(FromRequest)] (#729) 2022-01-28 09:54:38 +00:00
derive_opt_out_duplicate.rs Support opt-out of extra derived traits for rejections for #[derive(FromRequest)] (#729) 2022-01-28 09:54:38 +00:00
derive_opt_out_duplicate.stderr Support opt-out of extra derived traits for rejections for #[derive(FromRequest)] (#729) 2022-01-28 09:54:38 +00:00
double_via_attr.rs Move axum-debug into axum-macros (#724) 2022-01-26 23:27:22 +01:00
double_via_attr.stderr Move axum-debug into axum-macros (#724) 2022-01-26 23:27:22 +01:00
generic.rs Move axum-debug into axum-macros (#724) 2022-01-26 23:27:22 +01:00
generic.stderr Move axum-debug into axum-macros (#724) 2022-01-26 23:27:22 +01:00
rejection_derive_and_via.rs Support opt-out of extra derived traits for rejections for #[derive(FromRequest)] (#729) 2022-01-28 09:54:38 +00:00
rejection_derive_and_via.stderr Support opt-out of extra derived traits for rejections for #[derive(FromRequest)] (#729) 2022-01-28 09:54:38 +00:00
unknown_attr_container.rs Support opt-out of extra derived traits for rejections for #[derive(FromRequest)] (#729) 2022-01-28 09:54:38 +00:00
unknown_attr_container.stderr Support opt-out of extra derived traits for rejections for #[derive(FromRequest)] (#729) 2022-01-28 09:54:38 +00:00
unknown_attr_field.rs Support opt-out of extra derived traits for rejections for #[derive(FromRequest)] (#729) 2022-01-28 09:54:38 +00:00
unknown_attr_field.stderr Support opt-out of extra derived traits for rejections for #[derive(FromRequest)] (#729) 2022-01-28 09:54:38 +00:00
via_and_rejection_derive.rs Support opt-out of extra derived traits for rejections for #[derive(FromRequest)] (#729) 2022-01-28 09:54:38 +00:00
via_and_rejection_derive.stderr Support opt-out of extra derived traits for rejections for #[derive(FromRequest)] (#729) 2022-01-28 09:54:38 +00:00
via_on_container_and_field.rs Move axum-debug into axum-macros (#724) 2022-01-26 23:27:22 +01:00
via_on_container_and_field.stderr Move axum-debug into axum-macros (#724) 2022-01-26 23:27:22 +01:00