pub struct SelectPropsBuilder { /* private fields */ }Implementations§
Source§impl SelectPropsBuilder
impl SelectPropsBuilder
pub fn id(self, val: impl Into<Option<Cow<'static, str>>>) -> Self
pub fn name(self, val: impl Into<Option<Cow<'static, str>>>) -> Self
pub fn label(self, val: impl Into<Option<Cow<'static, str>>>) -> Self
pub fn value(self, val: impl Into<Option<Cow<'static, str>>>) -> Self
pub fn placeholder(self, val: impl Into<Option<Cow<'static, str>>>) -> Self
pub fn disabled(self, val: bool) -> Self
pub fn options(self, val: Vec<SelectOption>) -> Self
pub fn class(self, val: impl Into<Option<Cow<'static, str>>>) -> Self
pub fn attrs(self, val: AttrMap) -> Self
pub fn children(self, val: Children) -> Self
pub fn build(self) -> SelectProps
Trait Implementations§
Source§impl From<SelectPropsBuilder> for SelectProps
impl From<SelectPropsBuilder> for SelectProps
Source§fn from(b: SelectPropsBuilder) -> Self
fn from(b: SelectPropsBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SelectPropsBuilder
impl RefUnwindSafe for SelectPropsBuilder
impl Send for SelectPropsBuilder
impl Sync for SelectPropsBuilder
impl Unpin for SelectPropsBuilder
impl UnsafeUnpin for SelectPropsBuilder
impl UnwindSafe for SelectPropsBuilder
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