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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.