Skip to content

Commit

Permalink
mention serde derive feature on extractors page
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Dec 11, 2023
1 parent a8b8b24 commit 4c56331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/extractors.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ For instance, for resource that registered for the `/users/{user_id}/{friend}` p

<CodeBlock example="extractors" file="path_one.rs" section="path-one" />

It is also possible to extract path information to a type that implements the `Deserialize` trait from `serde` by matching dynamic segment names with field names. Here is an equivalent example that uses `serde` instead of a tuple type.
It is also possible to extract path information to a type that implements the `Deserialize` trait from `serde` by matching dynamic segment names with field names. Here is an equivalent example that uses a deserialization struct using `serde` (make sure to enable its `derive` feature) instead of a tuple type.

<CodeBlock example="extractors" file="path_two.rs" section="path-two" />

Expand Down

0 comments on commit 4c56331

Please sign in to comment.