Struct yew_router::components::LinkProps
source · pub struct LinkProps<R, Q = ()>where
R: Routable,
Q: Clone + PartialEq + Serialize,{
pub classes: Classes,
pub to: R,
pub query: Option<Q>,
pub disabled: bool,
pub anchor_ref: NodeRef,
pub children: Children,
}
Expand description
Props for Link
Fields§
§classes: Classes
CSS classes to add to the anchor element (optional).
to: R
Route that will be pushed when the anchor is clicked.
query: Option<Q>
Route query data
disabled: bool
§anchor_ref: NodeRef
NodeRef
for the <a>
element.
children: Children
Trait Implementations§
source§impl<R: Clone, Q: Clone> Clone for LinkProps<R, Q>where
R: Routable,
Q: Clone + PartialEq + Serialize,
impl<R: Clone, Q: Clone> Clone for LinkProps<R, Q>where
R: Routable,
Q: Clone + PartialEq + Serialize,
source§impl<R: PartialEq, Q: PartialEq> PartialEq<LinkProps<R, Q>> for LinkProps<R, Q>where
R: Routable,
Q: Clone + PartialEq + Serialize,
impl<R: PartialEq, Q: PartialEq> PartialEq<LinkProps<R, Q>> for LinkProps<R, Q>where
R: Routable,
Q: Clone + PartialEq + Serialize,
source§impl<R, Q> Properties for LinkProps<R, Q>where
R: Routable,
Q: Clone + PartialEq + Serialize,
impl<R, Q> Properties for LinkProps<R, Q>where
R: Routable,
Q: Clone + PartialEq + Serialize,
impl<R, Q> StructuralPartialEq for LinkProps<R, Q>where
R: Routable,
Q: Clone + PartialEq + Serialize,
Auto Trait Implementations§
impl<R, Q = ()> !RefUnwindSafe for LinkProps<R, Q>
impl<R, Q = ()> !Send for LinkProps<R, Q>
impl<R, Q = ()> !Sync for LinkProps<R, Q>
impl<R, Q> Unpin for LinkProps<R, Q>where
Q: Unpin,
R: Unpin,
impl<R, Q = ()> !UnwindSafe for LinkProps<R, Q>
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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.