[−][src]Struct yew_router::router::Props
Properties for Router.
Fields
render: Render<SW, STATE>
Render function that takes a Switch and produces Html
redirect: Option<Redirect<SW, STATE>>
Optional redirect function that will convert the route to a known switch variant if explicit matching fails.
This should mostly be used to handle 404s and redirection.
It is not strictly necessary as your Switch is capable of handling unknown routes using #[to="/{*:any}"]
.
Trait Implementations
impl<STATE: Clone + RouterState, SW: Clone + Switch + 'static> Clone for Props<STATE, SW>
[src]
impl<STATE: RouterState, SW: Switch + Clone> Debug for Props<STATE, SW>
[src]
impl<STATE: RouterState, SW: Switch + Clone + 'static> Properties for Props<STATE, SW>
[src]
Auto Trait Implementations
impl<STATE, SW> !RefUnwindSafe for Props<STATE, SW>
impl<STATE, SW> !Send for Props<STATE, SW>
impl<STATE, SW> !Sync for Props<STATE, SW>
impl<STATE, SW> Unpin for Props<STATE, SW>
impl<STATE, SW> !UnwindSafe for Props<STATE, SW>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,