axum-syntax-extractors
OfficialFix extractor ordering and body parsing in Axum
AuthorImpertio-Studio
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents common Axum handler failures by guiding you to choose the correct extractor types and place them in the required order so requests deserialize and reject consistently instead of failing with opaque Handler trait errors.
Core Features & Use Cases
- Correct extractor selection: Use
FromRequestPartsfor path/query/headers/state/extension andFromRequestfor the single body extractor (Json,Form,Bytes,String, orRequest). - Deterministic ordering rules: Ensures all
FromRequestPartsarguments come before exactly one body extractor, which must be last. - Axum 0.7 vs 0.8 correctness: Covers the route-capture syntax differences that affect
Pathdeserialization while keeping extractor usage consistent. - Safe optional and explicit failure handling: Explains Axum 0.8
Option<Extractor>absent-vs-invalid semantics and when to useResult<Extractor, Rejection>to inspect rejection details. - Practical deserialization patterns: Covers
Path<T>shapes (primitive, tuple, struct, map) and how query and JSON behave, includingContent-Typerequirements.
Quick Start
Ask the AI to rewrite your handler signature to use Path, Query, State, Extension, and a single last body extractor (Json/Form) according to Axum 0.7/0.8 rules, and to diagnose any “Handler is not satisfied” error.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: axum-syntax-extractors Download link: https://github.com/Impertio-Studio/Axum-Claude-Skill-Package/archive/main.zip#axum-syntax-extractors Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.