TypedPath

Derive Macro TypedPath 

Source
#[derive(TypedPath)]
{
    // Attributes available to this derive:
    #[typed_path]
}
Expand description

Derive macro for TypedPath

§Example

#[derive(TypedPath, Deserialize, Serialize)]
#[typed_path("/users/{id}/posts/{post_id}")]
struct PostPath {
    id: u64,
    post_id: String,
}