pub struct DocumentPropsBuilder<'__a, __interactive = interactive, __theme = theme, __title = title, __child = child> { /* private fields */ }Expand description
Typestate builder for DocumentProps, created by DocumentProps::builder(). build() becomes available once every required property has been set.
Implementations§
Source§impl<'__a, __interactive, __theme, __title, __child> DocumentPropsBuilder<'__a, __interactive, __theme, __title, __child>
impl<'__a, __interactive, __theme, __title, __child> DocumentPropsBuilder<'__a, __interactive, __theme, __title, __child>
Sourcepub fn interactive(
self,
interactive: bool,
) -> DocumentPropsBuilder<'__a, Set, __theme, __title, __child>
pub fn interactive( self, interactive: bool, ) -> DocumentPropsBuilder<'__a, Set, __theme, __title, __child>
Sets the interactive property.
Sourcepub fn theme(
self,
theme: usize,
) -> DocumentPropsBuilder<'__a, __interactive, Set, __title, __child>
pub fn theme( self, theme: usize, ) -> DocumentPropsBuilder<'__a, __interactive, Set, __title, __child>
Sets the theme property.
Sourcepub fn title(
self,
title: String,
) -> DocumentPropsBuilder<'__a, __interactive, __theme, Set, __child>
pub fn title( self, title: String, ) -> DocumentPropsBuilder<'__a, __interactive, __theme, Set, __child>
Sets the title property.
Sourcepub fn child(
self,
child: Child<'__a>,
) -> DocumentPropsBuilder<'__a, __interactive, __theme, __title, Set>
pub fn child( self, child: Child<'__a>, ) -> DocumentPropsBuilder<'__a, __interactive, __theme, __title, Set>
Sets the child property.
Sourcepub fn build(self) -> DocumentProps<'__a>
pub fn build(self) -> DocumentProps<'__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, __interactive = interactive, __theme = theme, __title = title, __child = child> !RefUnwindSafe for DocumentPropsBuilder<'__a, __interactive, __theme, __title, __child>
impl<'__a, __interactive = interactive, __theme = theme, __title = title, __child = child> !Sync for DocumentPropsBuilder<'__a, __interactive, __theme, __title, __child>
impl<'__a, __interactive = interactive, __theme = theme, __title = title, __child = child> !UnwindSafe for DocumentPropsBuilder<'__a, __interactive, __theme, __title, __child>
impl<'__a, __interactive, __theme, __title, __child> Freeze for DocumentPropsBuilder<'__a, __interactive, __theme, __title, __child>
impl<'__a, __interactive, __theme, __title, __child> Send for DocumentPropsBuilder<'__a, __interactive, __theme, __title, __child>
impl<'__a, __interactive, __theme, __title, __child> Unpin for DocumentPropsBuilder<'__a, __interactive, __theme, __title, __child>
impl<'__a, __interactive, __theme, __title, __child> UnsafeUnpin for DocumentPropsBuilder<'__a, __interactive, __theme, __title, __child>
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