pub enum Attr<'a> {
Show 22 variants
Any(&'a str, &'a str),
Id(&'a str),
Title(&'a str),
Placeholder(&'a str),
Autocomplete(Autocomplete),
Autofocus,
Disabled,
Readonly,
Tabindex(i64),
StepFloat(f64),
StepInt(u64),
Size(u64),
Width(u64),
Height(u64),
Rows(u64),
Cols(u64),
Spellcheck(Spellcheck),
Wrap(Wrap),
FormAction(&'a str),
FormEnctype(&'a str),
FormNoValidate,
FormTarget(&'a str),
}
Expand description
An HTML attribute without validation behaviour. The list should be
complete and up-to-date with the latest HTML specifications. HTML
validity is checked when adding the attributes to the fields using
HtmlForm
’s builder methods.
Variants§
Any(&'a str, &'a str)
Use to add any attribute to any element without validation.
Id(&'a str)
Title(&'a str)
Placeholder(&'a str)
Autocomplete(Autocomplete)
Autofocus
Disabled
Readonly
Tabindex(i64)
StepFloat(f64)
StepInt(u64)
Size(u64)
Width(u64)
Height(u64)
Rows(u64)
Cols(u64)
Spellcheck(Spellcheck)
Wrap(Wrap)
FormAction(&'a str)
FormEnctype(&'a str)
FormNoValidate
FormTarget(&'a str)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Attr<'a>
impl<'a> RefUnwindSafe for Attr<'a>
impl<'a> Send for Attr<'a>
impl<'a> Sync for Attr<'a>
impl<'a> Unpin for Attr<'a>
impl<'a> UnwindSafe for Attr<'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