pub struct CheckboxPropsBuilder { /* private fields */ }Expand description
Typestate builder for CheckboxProps, created by CheckboxProps::builder(). build() becomes available once every required property has been set.
Implementations§
Source§impl CheckboxPropsBuilder
impl CheckboxPropsBuilder
Sourcepub fn attrs(self, attrs: Attributes) -> Self
pub fn attrs(self, attrs: Attributes) -> Self
Sets the attrs property.
Sourcepub fn build(self) -> CheckboxProps
pub fn build(self) -> CheckboxProps
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 Freeze for CheckboxPropsBuilder
impl RefUnwindSafe for CheckboxPropsBuilder
impl Send for CheckboxPropsBuilder
impl Sync for CheckboxPropsBuilder
impl Unpin for CheckboxPropsBuilder
impl UnsafeUnpin for CheckboxPropsBuilder
impl UnwindSafe for CheckboxPropsBuilder
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