pub struct DialogPropsBuilder<'__a, __open = open> { /* private fields */ }Expand description
Typestate builder for DialogProps, created by DialogProps::builder(). build() becomes available once every required property has been set.
Implementations§
Source§impl<'__a, __open> DialogPropsBuilder<'__a, __open>
impl<'__a, __open> DialogPropsBuilder<'__a, __open>
Sourcepub fn open(self, open: impl Into<Expr<bool>>) -> DialogPropsBuilder<'__a, Set>
pub fn open(self, open: impl Into<Expr<bool>>) -> DialogPropsBuilder<'__a, Set>
Whether the dialog shows.
Sourcepub fn attrs(self, attrs: Attributes) -> Self
pub fn attrs(self, attrs: Attributes) -> Self
Extra attributes for the <dialog> element.
Sourcepub fn build(self) -> DialogProps<'__a>where
__open: IsSet,
pub fn build(self) -> DialogProps<'__a>where
__open: 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, __open = open> !RefUnwindSafe for DialogPropsBuilder<'__a, __open>
impl<'__a, __open = open> !Sync for DialogPropsBuilder<'__a, __open>
impl<'__a, __open = open> !UnwindSafe for DialogPropsBuilder<'__a, __open>
impl<'__a, __open> Freeze for DialogPropsBuilder<'__a, __open>
impl<'__a, __open> Send for DialogPropsBuilder<'__a, __open>
impl<'__a, __open> Unpin for DialogPropsBuilder<'__a, __open>
impl<'__a, __open> UnsafeUnpin for DialogPropsBuilder<'__a, __open>
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