Trait HtmlInputAttributes

Source
pub trait HtmlInputAttributes: SetAttribute + Sized {
Show 36 methods // Provided methods fn accept(self, value: impl Into<StringAttribute>) -> Self { ... } fn alt(self, value: impl Into<StringAttribute>) -> Self { ... } fn autocomplete(self, value: impl Into<StringAttribute>) -> Self { ... } fn autofocus(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... } fn capture(self, value: impl Into<StringAttribute>) -> Self { ... } fn checked(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... } fn directory(self, value: impl Into<StringAttribute>) -> Self { ... } fn disabled(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... } fn form(self, value: impl Into<StringAttribute>) -> Self { ... } fn formaction(self, value: impl Into<StringAttribute>) -> Self { ... } fn formenctype(self, value: impl Into<StringAttribute>) -> Self { ... } fn formmethod(self, value: impl Into<StringAttribute>) -> Self { ... } fn formnovalidate(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... } fn formtarget(self, value: impl Into<StringAttribute>) -> Self { ... } fn height(self, value: impl Into<StringAttribute>) -> Self { ... } fn initial_checked(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... } fn initial_value(self, value: impl Into<StringAttribute>) -> Self { ... } fn list(self, value: impl Into<StringAttribute>) -> Self { ... } fn max(self, value: impl Into<StringAttribute>) -> Self { ... } fn maxlength(self, value: impl Into<StringAttribute>) -> Self { ... } fn min(self, value: impl Into<StringAttribute>) -> Self { ... } fn minlength(self, value: impl Into<StringAttribute>) -> Self { ... } fn multiple(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... } fn name(self, value: impl Into<StringAttribute>) -> Self { ... } fn pattern(self, value: impl Into<StringAttribute>) -> Self { ... } fn placeholder(self, value: impl Into<StringAttribute>) -> Self { ... } fn readonly(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... } fn required(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... } fn size(self, value: impl Into<StringAttribute>) -> Self { ... } fn spellcheck(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... } fn src(self, value: impl Into<StringAttribute>) -> Self { ... } fn step(self, value: impl Into<StringAttribute>) -> Self { ... } fn tabindex(self, value: impl Into<StringAttribute>) -> Self { ... } fn type(self, value: impl Into<StringAttribute>) -> Self { ... } fn value(self, value: impl Into<StringAttribute>) -> Self { ... } fn width(self, value: impl Into<StringAttribute>) -> Self { ... }
}
Expand description

Trait that provides attributes for the <input> HTML element.

Provided Methods§

Source

fn accept(self, value: impl Into<StringAttribute>) -> Self

Source

fn alt(self, value: impl Into<StringAttribute>) -> Self

Source

fn autocomplete(self, value: impl Into<StringAttribute>) -> Self

Source

fn autofocus(self, value: impl Into<MaybeDyn<bool>>) -> Self

Source

fn capture(self, value: impl Into<StringAttribute>) -> Self

Source

fn checked(self, value: impl Into<MaybeDyn<bool>>) -> Self

Source

fn directory(self, value: impl Into<StringAttribute>) -> Self

Source

fn disabled(self, value: impl Into<MaybeDyn<bool>>) -> Self

Source

fn form(self, value: impl Into<StringAttribute>) -> Self

Source

fn formaction(self, value: impl Into<StringAttribute>) -> Self

Source

fn formenctype(self, value: impl Into<StringAttribute>) -> Self

Source

fn formmethod(self, value: impl Into<StringAttribute>) -> Self

Source

fn formnovalidate(self, value: impl Into<MaybeDyn<bool>>) -> Self

Source

fn formtarget(self, value: impl Into<StringAttribute>) -> Self

Source

fn height(self, value: impl Into<StringAttribute>) -> Self

Source

fn initial_checked(self, value: impl Into<MaybeDyn<bool>>) -> Self

Source

fn initial_value(self, value: impl Into<StringAttribute>) -> Self

Source

fn list(self, value: impl Into<StringAttribute>) -> Self

Source

fn max(self, value: impl Into<StringAttribute>) -> Self

Source

fn maxlength(self, value: impl Into<StringAttribute>) -> Self

Source

fn min(self, value: impl Into<StringAttribute>) -> Self

Source

fn minlength(self, value: impl Into<StringAttribute>) -> Self

Source

fn multiple(self, value: impl Into<MaybeDyn<bool>>) -> Self

Source

fn name(self, value: impl Into<StringAttribute>) -> Self

Source

fn pattern(self, value: impl Into<StringAttribute>) -> Self

Source

fn placeholder(self, value: impl Into<StringAttribute>) -> Self

Source

fn readonly(self, value: impl Into<MaybeDyn<bool>>) -> Self

Source

fn required(self, value: impl Into<MaybeDyn<bool>>) -> Self

Source

fn size(self, value: impl Into<StringAttribute>) -> Self

Source

fn spellcheck(self, value: impl Into<MaybeDyn<bool>>) -> Self

Source

fn src(self, value: impl Into<StringAttribute>) -> Self

Source

fn step(self, value: impl Into<StringAttribute>) -> Self

Source

fn tabindex(self, value: impl Into<StringAttribute>) -> Self

Source

fn type(self, value: impl Into<StringAttribute>) -> Self

Source

fn value(self, value: impl Into<StringAttribute>) -> Self

Source

fn width(self, value: impl Into<StringAttribute>) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§