pub enum Attr<'a> {
Show 34 variants
Class(&'a str),
Id(&'a str),
Href(&'a str),
Src(&'a str),
Action(&'a str),
Method(&'a str),
Name(&'a str),
Value(&'a str),
Type(&'a str),
Placeholder(&'a str),
Title(&'a str),
Rel(&'a str),
Role(&'a str),
Target(&'a str),
Alt(&'a str),
Lang(&'a str),
Content(&'a str),
Property(&'a str),
Charset(&'a str),
Width(&'a str),
Height(&'a str),
Rows(&'a str),
Colspan(&'a str),
For(&'a str),
Data(&'static str, &'a str),
Aria(&'static str, &'a str),
Hx(&'static str, &'a str),
Required,
Hidden,
Disabled,
Checked,
Selected,
Defer,
Open,
}Expand description
Typed HTML attributes enforcing strict CSP by omitting style and on* constructors.
Variants§
Class(&'a str)
Id(&'a str)
Href(&'a str)
Src(&'a str)
Action(&'a str)
Method(&'a str)
Name(&'a str)
Value(&'a str)
Type(&'a str)
Placeholder(&'a str)
Title(&'a str)
Rel(&'a str)
Role(&'a str)
Target(&'a str)
Alt(&'a str)
Lang(&'a str)
Content(&'a str)
Property(&'a str)
Charset(&'a str)
Width(&'a str)
Height(&'a str)
Rows(&'a str)
Colspan(&'a str)
For(&'a str)
Data(&'static str, &'a str)
data-<suffix>="<escaped>"
Aria(&'static str, &'a str)
aria-<suffix>="<escaped>"
Hx(&'static str, &'a str)
hx-<suffix>="<escaped>"
Required
Hidden
Disabled
Checked
Selected
Defer
Open
Trait Implementations§
impl<'a> Copy for Attr<'a>
impl<'a> Eq for Attr<'a>
impl<'a> StructuralPartialEq for Attr<'a>
Auto Trait Implementations§
impl<'a> Forget for Attr<'a>
impl<'a> Freeze for Attr<'a>
impl<'a> Move 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> UnsafeUnpin 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