Trait HtmlScriptAttributes

Source
pub trait HtmlScriptAttributes: SetAttribute + Sized {
    // Provided methods
    fn async(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
    fn crossorigin(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn defer(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
    fn integrity(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn nomodule(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
    fn nonce(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn src(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn script(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn text(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn type(self, value: impl Into<StringAttribute>) -> Self { ... }
}
Expand description

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

Provided Methods§

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn type(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§