Struct perseus::router::FullRouteInfo
source · pub struct FullRouteInfo<'a, G: Html> {
pub path: PathWithoutLocale,
pub entity: &'a Entity<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: PathWithoutLocale
The actual path of the route. This does not include the locale!
entity: &'a Entity<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§
Auto Trait Implementations§
impl<'a, G> !RefUnwindSafe for FullRouteInfo<'a, G>
impl<'a, G> Send for FullRouteInfo<'a, G>
impl<'a, G> Sync for FullRouteInfo<'a, G>
impl<'a, G> Unpin for FullRouteInfo<'a, G>
impl<'a, G> !UnwindSafe for FullRouteInfo<'a, G>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more