[][src]Struct yew_router::components::Props

pub struct Props<SW> where
    SW: Switch + Clone
{ pub route: SW, pub text: String, pub children: Children, pub disabled: bool, pub classes: String, }

Properties for RouterButton and RouterLink.

Fields

route: SW

The Switched item representing the route.

text: String
👎 Deprecated:

Use children field instead (nested html)

The text to display.

children: Children

Html inside the component.

disabled: bool

Disable the component.

classes: String

Classes to be added to component.

Trait Implementations

impl<SW: Clone> Clone for Props<SW> where
    SW: Switch + Clone
[src]

impl<SW: Debug> Debug for Props<SW> where
    SW: Switch + Clone
[src]

impl<SW: Default> Default for Props<SW> where
    SW: Switch + Clone
[src]

impl<SW> Properties for Props<SW> where
    SW: Switch + Clone
[src]

type Builder = PropsBuilder<SW, PropsBuilderStep_missing_required_prop_route>

Builder that will be used to construct properties

Auto Trait Implementations

impl<SW> !RefUnwindSafe for Props<SW>

impl<SW> !Send for Props<SW>

impl<SW> !Sync for Props<SW>

impl<SW> Unpin for Props<SW> where
    SW: Unpin

impl<SW> !UnwindSafe for Props<SW>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.