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