mirror of
https://github.com/actix/actix-website
synced 2024-11-24 00:41:07 +01:00
commit
51d054f15c
@ -314,7 +314,7 @@ Actix provides functionality for type safe path information extraction.
|
|||||||
could be defined in several different forms. Simplest approach is to use
|
could be defined in several different forms. Simplest approach is to use
|
||||||
`tuple` type. Each element in tuple must correpond to one element from
|
`tuple` type. Each element in tuple must correpond to one element from
|
||||||
path pattern. i.e. you can match path pattern `/{id}/{username}/` against
|
path pattern. i.e. you can match path pattern `/{id}/{username}/` against
|
||||||
`Pyth<(u32, String)>` type, but `Path<(String, String, String)>` type will
|
`Path<(u32, String)>` type, but `Path<(String, String, String)>` type will
|
||||||
always fail.
|
always fail.
|
||||||
|
|
||||||
{{< include-example example="url-dispatch" file="path.rs" section="path" >}}
|
{{< include-example example="url-dispatch" file="path.rs" section="path" >}}
|
||||||
|
Loading…
Reference in New Issue
Block a user