Expand description
The possible outcomes of matching a route. This is an alternative implementation of Sycamore’s Route
trait to enable greater
control and tighter integration of routing with templates. This can only be used if Routes
has been defined in context (done
automatically by the CLI).
Variants
Found(RouteInfo<G>)
The given route was found, and route information is attached.
NotFound
The given route was not found, and a 404 Not Found
page should be shown.
LocaleDetection(String)
The given route maps to the locale detector, which will redirect the user to the attached path (in the appropriate locale).
Trait Implementations
sourceimpl<G: Clone + Html> Clone for RouteVerdict<G>
impl<G: Clone + Html> Clone for RouteVerdict<G>
sourcefn clone(&self) -> RouteVerdict<G>
fn clone(&self) -> RouteVerdict<G>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<G> !RefUnwindSafe for RouteVerdict<G>
impl<G> !Send for RouteVerdict<G>
impl<G> !Sync for RouteVerdict<G>
impl<G> Unpin for RouteVerdict<G>
impl<G> !UnwindSafe for RouteVerdict<G>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more