Module percy_router::prelude
source · Expand description
Things that you’ll usually need when working with frontend routing
Macros
Structs
Data that was provided by the developer.
A route specifies a path to match against. When a match is found a
view_creator
is used
to return an impl View
that can be used to render the appropriate content for that route.Holds all of the routes for an application.
Traits
Enables a type to be used as a route paramer
Type Definitions
Given a param_key &str and a param_val &str, get the corresponding route parameter
A map of TypeId’s to Box<Provided> (stored as Box)
Attribute Macros
An attribute that turns a function into a view route