pub struct SidebarProps<T, TIV, B, BIV, M, MIV>{
pub id: Option<String>,
pub class: Option<String>,
pub style: Option<String>,
pub top_icons: T,
pub bottom_icons: B,
pub menu: M,
}
Expand description
Props for the Sidebar
component.
§Required Props
- top_icons: [
T
] - bottom_icons: [
B
] - menu: [
M
]
§Optional Props
- id:
impl Into<String>
- class:
impl Into<String>
- style:
impl Into<String>
Fields§
§id: Option<String>
§class: Option<String>
§style: Option<String>
§top_icons: T
§bottom_icons: B
Implementations§
Source§impl<T, TIV, B, BIV, M, MIV> SidebarProps<T, TIV, B, BIV, M, MIV>
impl<T, TIV, B, BIV, M, MIV> SidebarProps<T, TIV, B, BIV, M, MIV>
Sourcepub fn builder() -> SidebarPropsBuilder<T, TIV, B, BIV, M, MIV, ((), (), (), (), (), ())>
pub fn builder() -> SidebarPropsBuilder<T, TIV, B, BIV, M, MIV, ((), (), (), (), (), ())>
Create a builder for building SidebarProps
.
On the builder, call .id(...)
(optional), .class(...)
(optional), .style(...)
(optional), .top_icons(...)
, .bottom_icons(...)
, .menu(...)
to set the values of the fields.
Finally, call .build()
to create the instance of SidebarProps
.
Trait Implementations§
Auto Trait Implementations§
impl<T, TIV, B, BIV, M, MIV> Freeze for SidebarProps<T, TIV, B, BIV, M, MIV>
impl<T, TIV, B, BIV, M, MIV> RefUnwindSafe for SidebarProps<T, TIV, B, BIV, M, MIV>
impl<T, TIV, B, BIV, M, MIV> Send for SidebarProps<T, TIV, B, BIV, M, MIV>
impl<T, TIV, B, BIV, M, MIV> Sync for SidebarProps<T, TIV, B, BIV, M, MIV>
impl<T, TIV, B, BIV, M, MIV> Unpin for SidebarProps<T, TIV, B, BIV, M, MIV>
impl<T, TIV, B, BIV, M, MIV> UnwindSafe for SidebarProps<T, TIV, B, BIV, M, MIV>
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