mirror of
https://github.com/actix/actix-website
synced 2024-11-23 16:31:08 +01:00
mention serde derive feature on extractors page
This commit is contained in:
parent
a8b8b24fe2
commit
4c563311b6
@ -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" />
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user