pub struct RouteInfoAtomic<'a, G: Html> {
    pub path: String,
    pub template: &'a 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.

This version is designed for multithreaded scenarios, and stores a reference to a template rather than an Rc<Template<G>>. That means this is not compatible with Perseus on the client-side, only on the server-side.

Fields

path: String

The actual path of the route.

template: &'a Template<G>

The template that will be used. The app shell will derive props 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.

Trait Implementations

Formats the value using the given formatter. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.