Struct freya_components::SidebarItemProps
source · pub struct SidebarItemProps<'a, T: Routable + 'a> {
pub children: Element<'a>,
pub onclick: Option<EventHandler<'a, ()>>,
pub to: Option<T>,
}Fields§
§children: Element<'a>§onclick: Option<EventHandler<'a, ()>>§to: Option<T>Implementations§
source§impl<'a, T: Routable + 'a> SidebarItemProps<'a, T>
impl<'a, T: Routable + 'a> SidebarItemProps<'a, T>
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§
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