README.md
This file
Path
examples/customize-extractor-error/README.md
16 lines · 585 bytes · Markdown
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than dcbcf5c point at it.
axum-extra: Make typed-routing feature enable routing feature (#3514)tottotobefore adoptiondcbcf5c
lines 1–16why, one step back1This example explores 3 different ways you can create custom rejections for2already existing extractors34- [`with_rejection`](src/with_rejection.rs): Uses5 `axum_extra::extract::WithRejection` to transform one rejection into another6- [`derive_from_request`](src/derive_from_request.rs): Uses the7 `axum::extract::FromRequest` derive macro to wrap another extractor and8 customize the rejection9- [`custom_extractor`](src/custom_extractor.rs): Manual implementation of10 `FromRequest` that wraps another extractor1112Run with1314```sh15cargo run -p example-customize-extractor-error16```