pub struct EmptyStatePropsBuilder<'__a, __title = title> { /* private fields */ }Expand description
Typestate builder for EmptyStateProps, created by EmptyStateProps::builder(). build() becomes available once every required property has been set.
Implementations§
Source§impl<'__a, __title> EmptyStatePropsBuilder<'__a, __title>
impl<'__a, __title> EmptyStatePropsBuilder<'__a, __title>
Sourcepub fn title(
self,
title: impl Into<String>,
) -> EmptyStatePropsBuilder<'__a, Set>
pub fn title( self, title: impl Into<String>, ) -> EmptyStatePropsBuilder<'__a, Set>
What is empty, e.g. "No records yet".
Sourcepub fn attrs(self, attrs: Attributes) -> Self
pub fn attrs(self, attrs: Attributes) -> Self
Extra attributes for the container.
Sourcepub fn build(self) -> EmptyStateProps<'__a>where
__title: IsSet,
pub fn build(self) -> EmptyStateProps<'__a>where
__title: IsSet,
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, __title = title> !RefUnwindSafe for EmptyStatePropsBuilder<'__a, __title>
impl<'__a, __title = title> !Sync for EmptyStatePropsBuilder<'__a, __title>
impl<'__a, __title = title> !UnwindSafe for EmptyStatePropsBuilder<'__a, __title>
impl<'__a, __title> Freeze for EmptyStatePropsBuilder<'__a, __title>
impl<'__a, __title> Send for EmptyStatePropsBuilder<'__a, __title>
impl<'__a, __title> Unpin for EmptyStatePropsBuilder<'__a, __title>
impl<'__a, __title> UnsafeUnpin for EmptyStatePropsBuilder<'__a, __title>
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