Struct perseus::internal::router::RouteInfo [−][src]
pub struct RouteInfo<G: GenericNode> {
pub path: String,
pub template: Template<G>,
pub was_incremental_match: bool,
pub locale: String,
}
Expand description
Information about a route, which, combined with error pages and a client-side translations manager, allows the initialization of the app shell and the rendering of a page.
Fields
path: String
The actual path of the route.
template: Template<G>
The template that will be used. The app shell will derive pros and a translator to pass to the template function.
was_incremental_match: bool
Whether or not the matched page was incrementally-generated at runtime (if it has been yet). If this is true
, the server will
use a mutable store rather than an immutable one. See the book for more details.
locale: String
The locale for the template to be rendered in.