pub struct SidebarPropsBuilder<'__a> { /* private fields */ }Expand description
Typestate builder for SidebarProps, created by SidebarProps::builder(). build() becomes available once every required property has been set.
Implementations§
Source§impl<'__a> SidebarPropsBuilder<'__a>
impl<'__a> SidebarPropsBuilder<'__a>
Sourcepub fn mobile_open(self, mobile_open: impl Into<Expr<bool>>) -> Self
pub fn mobile_open(self, mobile_open: impl Into<Expr<bool>>) -> Self
Sets the mobile_open property.
Sourcepub fn side(self, side: SidebarSide) -> Self
pub fn side(self, side: SidebarSide) -> Self
Sets the side property.
Sourcepub fn variant(self, variant: SidebarVariant) -> Self
pub fn variant(self, variant: SidebarVariant) -> Self
Sets the variant property.
Sourcepub fn collapsible(self, collapsible: SidebarCollapsible) -> Self
pub fn collapsible(self, collapsible: SidebarCollapsible) -> Self
Sets the collapsible property.
Sourcepub fn attrs(self, attrs: Attributes) -> Self
pub fn attrs(self, attrs: Attributes) -> Self
Sets the attrs property.
Sourcepub fn sheet_attrs(self, sheet_attrs: Attributes) -> Self
pub fn sheet_attrs(self, sheet_attrs: Attributes) -> Self
Sets the sheet_attrs property.
Sourcepub fn build(self) -> SidebarProps<'__a>
pub fn build(self) -> SidebarProps<'__a>
Builds the props struct from the set properties.
Only available once every required property has been set.
#[default] properties that were not set are filled with
Default::default(), or the #[default(expr)] expression.
Auto Trait Implementations§
impl<'__a> !RefUnwindSafe for SidebarPropsBuilder<'__a>
impl<'__a> !Sync for SidebarPropsBuilder<'__a>
impl<'__a> !UnwindSafe for SidebarPropsBuilder<'__a>
impl<'__a> Freeze for SidebarPropsBuilder<'__a>
impl<'__a> Send for SidebarPropsBuilder<'__a>
impl<'__a> Unpin for SidebarPropsBuilder<'__a>
impl<'__a> UnsafeUnpin for SidebarPropsBuilder<'__a>
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