InputBuilder

Struct InputBuilder 

Source
pub struct InputBuilder { /* private fields */ }
Expand description

A builder struct for Input

Implementations§

Source§

impl InputBuilder

Source

pub fn build(&mut self) -> Input

Finish building the element

Source

pub fn data( &mut self, data_key: impl Into<Cow<'static, str>>, value: impl Into<Cow<'static, str>>, ) -> &mut InputBuilder

Insert a data-* property

Source

pub fn accept(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the accept attribute

Source

pub fn alt(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the alt attribute

Source

pub fn autocomplete(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the autocomplete attribute

Source

pub fn checked(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the checked attribute

Source

pub fn dirname(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the dirname attribute

Source

pub fn disabled(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the disabled attribute

Source

pub fn form(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the form attribute

Source

pub fn formaction(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the formaction attribute

Source

pub fn formenctype(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the formenctype attribute

Source

pub fn formmethod(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the formmethod attribute

Source

pub fn formnovalidate( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the formnovalidate attribute

Source

pub fn formtarget(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the formtarget attribute

Source

pub fn height(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the height attribute

Source

pub fn list(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the list attribute

Source

pub fn max(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the max attribute

Source

pub fn maxlength(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the maxlength attribute

Source

pub fn min(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the min attribute

Source

pub fn minlength(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the minlength attribute

Source

pub fn multiple(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the multiple attribute

Source

pub fn name(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the name attribute

Source

pub fn pattern(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the pattern attribute

Source

pub fn placeholder(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the placeholder attribute

Source

pub fn popovertarget( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the popovertarget attribute

Source

pub fn popovertargetaction( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the popovertargetaction attribute

Source

pub fn readonly(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the readonly attribute

Source

pub fn required(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the required attribute

Source

pub fn size(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the size attribute

Source

pub fn src(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the src attribute

Source

pub fn step(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the step attribute

Source

pub fn type_(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the type attribute

Source

pub fn value(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the value attribute

Source

pub fn width(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the width attribute

Source

pub fn role(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the role attribute

Source

pub fn aria_active_descendant_element( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the aria-activedescendant attribute

Source

pub fn aria_atomic(&mut self, value: bool) -> &mut Self

Set the value of the aria-atomic attribute

Source

pub fn aria_auto_complete( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the aria-autocomplete attribute

Source

pub fn aria_braille_label( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the aria-braillelabel attribute

Source

pub fn aria_braille_role_description( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the aria-brailleroledescription attribute

Source

pub fn aria_busy(&mut self, value: bool) -> &mut Self

Set the value of the aria-busy attribute

Source

pub fn aria_checked(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the aria-checked attribute

Source

pub fn aria_col_index(&mut self, value: i64) -> &mut Self

Set the value of the aria-colindex attribute

Source

pub fn aria_col_index_text( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the aria-colindextext attribute

Source

pub fn aria_col_span(&mut self, value: i64) -> &mut Self

Set the value of the aria-colspan attribute

Source

pub fn aria_controls_elements( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the aria-controls attribute

Source

pub fn aria_current(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the aria-current attribute

Source

pub fn aria_described_by_elements( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the aria-describedby attribute

Source

pub fn aria_description( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the aria-description attribute

Source

pub fn aria_details_elements( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the aria-details attribute

Source

pub fn aria_disabled(&mut self, value: bool) -> &mut Self

Set the value of the aria-disabled attribute

Source

pub fn aria_drop_effect( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the aria-dropeffect attribute

Source

pub fn aria_error_message_elements( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the aria-errormessage attribute

Source

pub fn aria_expanded(&mut self, value: bool) -> &mut Self

Set the value of the aria-expanded attribute

Source

pub fn aria_flow_to_elements( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the aria-flowto attribute

Source

pub fn aria_grabbed(&mut self, value: bool) -> &mut Self

Set the value of the aria-grabbed attribute

Source

pub fn aria_has_popup( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the aria-haspopup attribute

Source

pub fn aria_hidden(&mut self, value: bool) -> &mut Self

Set the value of the aria-hidden attribute

Source

pub fn aria_invalid(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the aria-invalid attribute

Source

pub fn aria_key_shortcuts( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the aria-keyshortcuts attribute

Source

pub fn aria_label(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the aria-label attribute

Source

pub fn aria_labelled_by_elements( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the aria-labelledby attribute

Source

pub fn aria_level(&mut self, value: i64) -> &mut Self

Set the value of the aria-level attribute

Source

pub fn aria_live(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the aria-live attribute

Source

pub fn aria_multi_line(&mut self, value: bool) -> &mut Self

Set the value of the aria-multiline attribute

Source

pub fn aria_orientation( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the aria-orientation attribute

Source

pub fn aria_owns_elements( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the aria-owns attribute

Source

pub fn aria_placeholder( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the aria-placeholder attribute

Source

pub fn aria_pos_in_set(&mut self, value: i64) -> &mut Self

Set the value of the aria-posinset attribute

Source

pub fn aria_pressed(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the aria-pressed attribute

Source

pub fn aria_read_only(&mut self, value: bool) -> &mut Self

Set the value of the aria-readonly attribute

Source

pub fn aria_relevant( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the aria-relevant attribute

Source

pub fn aria_required(&mut self, value: bool) -> &mut Self

Set the value of the aria-required attribute

Source

pub fn aria_role_description( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the aria-roledescription attribute

Source

pub fn aria_row_index(&mut self, value: i64) -> &mut Self

Set the value of the aria-rowindex attribute

Source

pub fn aria_row_index_text( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the aria-rowindextext attribute

Source

pub fn aria_row_span(&mut self, value: i64) -> &mut Self

Set the value of the aria-rowspan attribute

Source

pub fn aria_selected(&mut self, value: bool) -> &mut Self

Set the value of the aria-selected attribute

Source

pub fn aria_set_size(&mut self, value: i64) -> &mut Self

Set the value of the aria-setsize attribute

Source

pub fn aria_value_max(&mut self, value: f64) -> &mut Self

Set the value of the aria-valuemax attribute

Source

pub fn aria_value_min(&mut self, value: f64) -> &mut Self

Set the value of the aria-valuemin attribute

Source

pub fn aria_value_now(&mut self, value: f64) -> &mut Self

Set the value of the aria-valuenow attribute

Source

pub fn aria_value_text( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the aria-valuetext attribute

Source

pub fn access_key(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the accesskey attribute

Source

pub fn auto_capitalize( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the autocapitalize attribute

Source

pub fn autofocus(&mut self, value: bool) -> &mut Self

Set the value of the autofocus attribute

Source

pub fn class(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the class attribute

Source

pub fn content_editable( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the contenteditable attribute

Source

pub fn direction(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the dir attribute

Source

pub fn draggable(&mut self, value: bool) -> &mut Self

Set the value of the draggable attribute

Source

pub fn enter_key_hint( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self

Set the value of the enterkeyhint attribute

Source

pub fn export_parts(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the exportparts attribute

Source

pub fn hidden(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the hidden attribute

Source

pub fn id(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the id attribute

Source

pub fn inert(&mut self, value: bool) -> &mut Self

Set the value of the inert attribute

Source

pub fn input_mode(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the inputmode attribute

Source

pub fn is_(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the is attribute

Source

pub fn item_id(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the itemid attribute

Source

pub fn item_prop(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the itemprop attribute

Source

pub fn item_ref(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the itemref attribute

Source

pub fn item_scope(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the itemscope attribute

Source

pub fn item_type(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the itemtype attribute

Source

pub fn lang(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the lang attribute

Source

pub fn nonce(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the nonce attribute

Source

pub fn part(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the part attribute

Source

pub fn slot(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the slot attribute

Source

pub fn spellcheck(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the spellcheck attribute

Source

pub fn style(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the style attribute

Source

pub fn tab_index(&mut self, value: i64) -> &mut Self

Set the value of the tabindex attribute

Source

pub fn title(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self

Set the value of the title attribute

Source

pub fn translate(&mut self, value: bool) -> &mut Self

Set the value of the translate attribute

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.