pub struct TextInputBuilder<'a> { /* private fields */ }Expand description
Builder for creating a Text Input.
Implementations§
Source§impl<'a> TextInputBuilder<'a>
impl<'a> TextInputBuilder<'a>
pub fn new( custom_id: impl Into<TitanString<'a>>, style: TextInputStyle, label: impl Into<TitanString<'a>>, ) -> Self
pub fn min_length(self, min: u16) -> Self
pub fn max_length(self, max: u16) -> Self
pub fn required(self, required: bool) -> Self
pub fn value(self, value: impl Into<TitanString<'a>>) -> Self
pub fn placeholder(self, placeholder: impl Into<TitanString<'a>>) -> Self
pub fn build(self) -> Component<'a>
Trait Implementations§
Source§impl<'a> Clone for TextInputBuilder<'a>
impl<'a> Clone for TextInputBuilder<'a>
Source§fn clone(&self) -> TextInputBuilder<'a>
fn clone(&self) -> TextInputBuilder<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for TextInputBuilder<'a>
impl<'a> RefUnwindSafe for TextInputBuilder<'a>
impl<'a> Send for TextInputBuilder<'a>
impl<'a> Sync for TextInputBuilder<'a>
impl<'a> Unpin for TextInputBuilder<'a>
impl<'a> UnwindSafe for TextInputBuilder<'a>
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