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
README.md
This example explores 3 different ways you can create custom rejections for already existing extractors
with_rejection: Usesaxum_extra::extract::WithRejectionto transform one rejection into anotherderive_from_request: Uses theaxum::extract::FromRequestderive macro to wrap another extractor and customize the rejectioncustom_extractor: Manual implementation ofFromRequestthat wraps another extractor
Run with
cargo run -p example-customize-extractor-error