Trait HtmlInputAttributes
pub trait HtmlInputAttributes: Sized + SetAttribute {
Show 36 methods
// Provided methods
fn accept(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn alt(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self { ... }
fn autocomplete(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn autofocus(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
fn capture(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn checked(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
fn directory(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn disabled(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
fn form(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self { ... }
fn formaction(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn formenctype(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn formmethod(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn formnovalidate(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
fn formtarget(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn height(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn initial_checked(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
fn initial_value(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn list(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self { ... }
fn max(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self { ... }
fn maxlength(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn min(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self { ... }
fn minlength(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn multiple(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
fn name(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self { ... }
fn pattern(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn placeholder(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> 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<MaybeDyn<Option<Cow<'static, str>>>>) -> Self { ... }
fn spellcheck(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
fn src(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self { ... }
fn step(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self { ... }
fn tabindex(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn type(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self { ... }
fn value(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn width(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
}
Expand description
Trait that provides attributes for the <input>
HTML element.
Provided Methods§
fn accept(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn alt(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn autocomplete( self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>, ) -> Self
fn autofocus(self, value: impl Into<MaybeDyn<bool>>) -> Self
fn capture(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn checked(self, value: impl Into<MaybeDyn<bool>>) -> Self
fn directory( self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>, ) -> Self
fn disabled(self, value: impl Into<MaybeDyn<bool>>) -> Self
fn form(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn formaction( self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>, ) -> Self
fn formenctype( self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>, ) -> Self
fn formmethod( self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>, ) -> Self
fn formnovalidate(self, value: impl Into<MaybeDyn<bool>>) -> Self
fn formtarget( self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>, ) -> Self
fn height(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn initial_checked(self, value: impl Into<MaybeDyn<bool>>) -> Self
fn initial_value( self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>, ) -> Self
fn list(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn max(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn maxlength( self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>, ) -> Self
fn min(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn minlength( self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>, ) -> Self
fn multiple(self, value: impl Into<MaybeDyn<bool>>) -> Self
fn name(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn pattern(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn placeholder( self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>, ) -> 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<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn spellcheck(self, value: impl Into<MaybeDyn<bool>>) -> Self
fn src(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn step(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn tabindex(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn type(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn value(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn width(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> 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.