Struct freya::prelude::SidebarItemProps
source · pub struct SidebarItemProps<'a, T>where
T: Routable + 'a,{
pub children: Option<VNode<'a>>,
pub onclick: Option<EventHandler<'a, ()>>,
pub to: Option<T>,
}
Fields§
§children: Option<VNode<'a>>
§onclick: Option<EventHandler<'a, ()>>
§to: Option<T>
Implementations§
source§impl<'a, T> SidebarItemProps<'a, T>where
T: Routable + 'a,
impl<'a, T> SidebarItemProps<'a, T>where T: Routable + 'a,
sourcepub fn builder() -> SidebarItemPropsBuilder<'a, ((), (), ()), T>
pub fn builder() -> SidebarItemPropsBuilder<'a, ((), (), ()), T>
Create a builder for building SidebarItemProps
.
On the builder, call .children(...)
(optional), .onclick(...)
(optional), .to(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of SidebarItemProps
.
Trait Implementations§
source§impl<'a, T> Properties for SidebarItemProps<'a, T>where
T: Routable + 'a,
impl<'a, T> Properties for SidebarItemProps<'a, T>where T: Routable + 'a,
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for SidebarItemProps<'a, T>
impl<'a, T> !Send for SidebarItemProps<'a, T>
impl<'a, T> !Sync for SidebarItemProps<'a, T>
impl<'a, T> Unpin for SidebarItemProps<'a, T>where T: Unpin,
impl<'a, T> !UnwindSafe for SidebarItemProps<'a, T>
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