pub struct RouteInfo {
pub path: PathWithoutLocale,
pub entity_name: String,
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.
Unlike FullRouteInfo
, this does not store the actual template being
used, instead it only stores its name, making it much easier to store.
Fields§
§path: PathWithoutLocale
The actual path of the route. This does not include the locale!
entity_name: String
The name of the template that should be used.
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 RefUnwindSafe for RouteInfo
impl Send for RouteInfo
impl Sync for RouteInfo
impl Unpin for RouteInfo
impl UnwindSafe for RouteInfo
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