[][src]Enum es_htmlform::types::Attr

pub enum Attr<'a> {
    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),
}

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)

Methods

impl<'a> Attr<'a>[src]

pub fn attrpair(&self) -> (String, String)[src]

pub fn allowed_on(&self, element: &Element) -> bool[src]

Trait Implementations

impl<'a> Debug for Attr<'a>[src]

Auto Trait Implementations

impl<'a> Send for Attr<'a>

impl<'a> Sync for Attr<'a>

impl<'a> Unpin for Attr<'a>

impl<'a> UnwindSafe for Attr<'a>

impl<'a> RefUnwindSafe for Attr<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]