pub struct Props<SW>{
pub route: SW,
pub text: String,
pub children: Children,
pub disabled: bool,
pub classes: String,
}Expand description
Properties for RouterButton and RouterLink.
Fields§
§route: SWThe Switched item representing the route.
text: String👎Deprecated: Use children field instead (nested html)
The text to display.
children: ChildrenHtml inside the component.
disabled: boolDisable the component.
classes: StringClasses to be added to component.
Trait Implementations§
Source§impl<SW> Properties for Props<SW>
impl<SW> Properties for Props<SW>
impl<SW> StructuralPartialEq for Props<SW>
Auto Trait Implementations§
impl<SW> Freeze for Props<SW>where
SW: Freeze,
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§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.