pub struct InputBuilder { /* private fields */ }Expand description
A builder struct for Input
Implementations§
Source§impl InputBuilder
impl InputBuilder
Sourcepub fn data(
&mut self,
data_key: impl Into<Cow<'static, str>>,
value: impl Into<Cow<'static, str>>,
) -> &mut InputBuilder
pub fn data( &mut self, data_key: impl Into<Cow<'static, str>>, value: impl Into<Cow<'static, str>>, ) -> &mut InputBuilder
Insert a data-* property
Sourcepub fn accept(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn accept(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the accept attribute
Sourcepub fn alt(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn alt(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the alt attribute
Sourcepub fn autocomplete(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn autocomplete(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the autocomplete attribute
Sourcepub fn checked(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn checked(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the checked attribute
Sourcepub fn dirname(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn dirname(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the dirname attribute
Sourcepub fn disabled(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn disabled(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the disabled attribute
Sourcepub fn form(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn form(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the form attribute
Sourcepub fn formaction(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn formaction(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the formaction attribute
Sourcepub fn formenctype(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn formenctype(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the formenctype attribute
Sourcepub fn formmethod(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn formmethod(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the formmethod attribute
Sourcepub fn formnovalidate(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn formnovalidate( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the formnovalidate attribute
Sourcepub fn formtarget(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn formtarget(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the formtarget attribute
Sourcepub fn height(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn height(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the height attribute
Sourcepub fn list(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn list(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the list attribute
Sourcepub fn max(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn max(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the max attribute
Sourcepub fn maxlength(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn maxlength(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the maxlength attribute
Sourcepub fn min(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn min(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the min attribute
Sourcepub fn minlength(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn minlength(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the minlength attribute
Sourcepub fn multiple(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn multiple(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the multiple attribute
Sourcepub fn name(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn name(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the name attribute
Sourcepub fn pattern(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn pattern(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the pattern attribute
Sourcepub fn placeholder(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn placeholder(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the placeholder attribute
Sourcepub fn popovertarget(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn popovertarget( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the popovertarget attribute
Sourcepub fn popovertargetaction(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn popovertargetaction( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the popovertargetaction attribute
Sourcepub fn readonly(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn readonly(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the readonly attribute
Sourcepub fn required(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn required(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the required attribute
Sourcepub fn size(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn size(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the size attribute
Sourcepub fn src(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn src(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the src attribute
Sourcepub fn step(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn step(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the step attribute
Sourcepub fn type_(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn type_(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the type attribute
Sourcepub fn value(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn value(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the value attribute
Sourcepub fn width(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn width(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the width attribute
Sourcepub fn role(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn role(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the role attribute
Sourcepub fn aria_active_descendant_element(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_active_descendant_element( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-activedescendant attribute
Sourcepub fn aria_atomic(&mut self, value: bool) -> &mut Self
pub fn aria_atomic(&mut self, value: bool) -> &mut Self
Set the value of the aria-atomic attribute
Sourcepub fn aria_auto_complete(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_auto_complete( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-autocomplete attribute
Sourcepub fn aria_braille_label(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_braille_label( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-braillelabel attribute
Sourcepub fn aria_braille_role_description(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_braille_role_description( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-brailleroledescription attribute
Sourcepub fn aria_checked(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn aria_checked(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the aria-checked attribute
Sourcepub fn aria_col_index(&mut self, value: i64) -> &mut Self
pub fn aria_col_index(&mut self, value: i64) -> &mut Self
Set the value of the aria-colindex attribute
Sourcepub fn aria_col_index_text(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_col_index_text( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-colindextext attribute
Sourcepub fn aria_col_span(&mut self, value: i64) -> &mut Self
pub fn aria_col_span(&mut self, value: i64) -> &mut Self
Set the value of the aria-colspan attribute
Sourcepub fn aria_controls_elements(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_controls_elements( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-controls attribute
Sourcepub fn aria_current(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn aria_current(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the aria-current attribute
Sourcepub fn aria_described_by_elements(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_described_by_elements( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-describedby attribute
Sourcepub fn aria_description(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_description( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-description attribute
Sourcepub fn aria_details_elements(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_details_elements( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-details attribute
Sourcepub fn aria_disabled(&mut self, value: bool) -> &mut Self
pub fn aria_disabled(&mut self, value: bool) -> &mut Self
Set the value of the aria-disabled attribute
Sourcepub fn aria_drop_effect(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_drop_effect( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-dropeffect attribute
Sourcepub fn aria_error_message_elements(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_error_message_elements( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-errormessage attribute
Sourcepub fn aria_expanded(&mut self, value: bool) -> &mut Self
pub fn aria_expanded(&mut self, value: bool) -> &mut Self
Set the value of the aria-expanded attribute
Sourcepub fn aria_flow_to_elements(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_flow_to_elements( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-flowto attribute
Sourcepub fn aria_grabbed(&mut self, value: bool) -> &mut Self
pub fn aria_grabbed(&mut self, value: bool) -> &mut Self
Set the value of the aria-grabbed attribute
Sourcepub fn aria_has_popup(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_has_popup( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-haspopup attribute
Set the value of the aria-hidden attribute
Sourcepub fn aria_invalid(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn aria_invalid(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the aria-invalid attribute
Sourcepub fn aria_key_shortcuts(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_key_shortcuts( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-keyshortcuts attribute
Sourcepub fn aria_label(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn aria_label(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the aria-label attribute
Sourcepub fn aria_labelled_by_elements(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_labelled_by_elements( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-labelledby attribute
Sourcepub fn aria_level(&mut self, value: i64) -> &mut Self
pub fn aria_level(&mut self, value: i64) -> &mut Self
Set the value of the aria-level attribute
Sourcepub fn aria_live(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn aria_live(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the aria-live attribute
Sourcepub fn aria_multi_line(&mut self, value: bool) -> &mut Self
pub fn aria_multi_line(&mut self, value: bool) -> &mut Self
Set the value of the aria-multiline attribute
Sourcepub fn aria_orientation(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_orientation( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-orientation attribute
Sourcepub fn aria_owns_elements(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_owns_elements( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-owns attribute
Sourcepub fn aria_placeholder(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_placeholder( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-placeholder attribute
Sourcepub fn aria_pos_in_set(&mut self, value: i64) -> &mut Self
pub fn aria_pos_in_set(&mut self, value: i64) -> &mut Self
Set the value of the aria-posinset attribute
Sourcepub fn aria_pressed(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn aria_pressed(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the aria-pressed attribute
Sourcepub fn aria_read_only(&mut self, value: bool) -> &mut Self
pub fn aria_read_only(&mut self, value: bool) -> &mut Self
Set the value of the aria-readonly attribute
Sourcepub fn aria_relevant(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_relevant( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-relevant attribute
Sourcepub fn aria_required(&mut self, value: bool) -> &mut Self
pub fn aria_required(&mut self, value: bool) -> &mut Self
Set the value of the aria-required attribute
Sourcepub fn aria_role_description(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_role_description( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-roledescription attribute
Sourcepub fn aria_row_index(&mut self, value: i64) -> &mut Self
pub fn aria_row_index(&mut self, value: i64) -> &mut Self
Set the value of the aria-rowindex attribute
Sourcepub fn aria_row_index_text(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_row_index_text( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-rowindextext attribute
Sourcepub fn aria_row_span(&mut self, value: i64) -> &mut Self
pub fn aria_row_span(&mut self, value: i64) -> &mut Self
Set the value of the aria-rowspan attribute
Sourcepub fn aria_selected(&mut self, value: bool) -> &mut Self
pub fn aria_selected(&mut self, value: bool) -> &mut Self
Set the value of the aria-selected attribute
Sourcepub fn aria_set_size(&mut self, value: i64) -> &mut Self
pub fn aria_set_size(&mut self, value: i64) -> &mut Self
Set the value of the aria-setsize attribute
Sourcepub fn aria_value_max(&mut self, value: f64) -> &mut Self
pub fn aria_value_max(&mut self, value: f64) -> &mut Self
Set the value of the aria-valuemax attribute
Sourcepub fn aria_value_min(&mut self, value: f64) -> &mut Self
pub fn aria_value_min(&mut self, value: f64) -> &mut Self
Set the value of the aria-valuemin attribute
Sourcepub fn aria_value_now(&mut self, value: f64) -> &mut Self
pub fn aria_value_now(&mut self, value: f64) -> &mut Self
Set the value of the aria-valuenow attribute
Sourcepub fn aria_value_text(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn aria_value_text( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the aria-valuetext attribute
Sourcepub fn access_key(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn access_key(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the accesskey attribute
Sourcepub fn auto_capitalize(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn auto_capitalize( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the autocapitalize attribute
Sourcepub fn class(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn class(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the class attribute
Sourcepub fn content_editable(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn content_editable( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the contenteditable attribute
Sourcepub fn direction(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn direction(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the dir attribute
Sourcepub fn enter_key_hint(
&mut self,
value: impl Into<Cow<'static, str>>,
) -> &mut Self
pub fn enter_key_hint( &mut self, value: impl Into<Cow<'static, str>>, ) -> &mut Self
Set the value of the enterkeyhint attribute
Sourcepub fn export_parts(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn export_parts(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the exportparts attribute
Set the value of the hidden attribute
Sourcepub fn id(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn id(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the id attribute
Sourcepub fn input_mode(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn input_mode(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the inputmode attribute
Sourcepub fn is_(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn is_(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the is attribute
Sourcepub fn item_id(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn item_id(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the itemid attribute
Sourcepub fn item_prop(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn item_prop(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the itemprop attribute
Sourcepub fn item_ref(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn item_ref(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the itemref attribute
Sourcepub fn item_scope(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn item_scope(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the itemscope attribute
Sourcepub fn item_type(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn item_type(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the itemtype attribute
Sourcepub fn lang(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn lang(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the lang attribute
Sourcepub fn nonce(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn nonce(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the nonce attribute
Sourcepub fn part(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn part(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the part attribute
Sourcepub fn slot(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn slot(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the slot attribute
Sourcepub fn spellcheck(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn spellcheck(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the spellcheck attribute
Sourcepub fn style(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn style(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the style attribute