1
0
mirror of https://github.com/actix/actix-website synced 2024-11-27 10:02:57 +01:00

mention serde derive feature on extractors page

This commit is contained in:
Rob Ede 2023-12-11 06:44:41 +00:00
parent a8b8b24fe2
commit 4c563311b6
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

View File

@ -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" />