pub struct RouteContext {
pub declared_route: String,
pub total_route: String,
}Expand description
A RouteContext is a context that is provided by Route components.
This signals to all child [Route] and [Link] components that they are
currently nested under this route.
Fields§
§declared_route: StringThe declared_route is the sub-piece of the route that matches this pattern.
It follows this pattern:
ⓘ
"name/:id"total_route: StringThe total_route is the full route that matches this pattern.
It follows this pattern:
ⓘ
"/level0/level1/:id"Trait Implementations§
Source§impl Clone for RouteContext
impl Clone for RouteContext
Source§fn clone(&self) -> RouteContext
fn clone(&self) -> RouteContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RouteContext
impl RefUnwindSafe for RouteContext
impl Send for RouteContext
impl Sync for RouteContext
impl Unpin for RouteContext
impl UnwindSafe for RouteContext
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