Trait HtmlVideoAttributes
pub trait HtmlVideoAttributes: Sized + SetAttribute {
// Provided methods
fn autoplay(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
fn controls(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
fn crossorigin(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn height(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn loop(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
fn muted(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
fn playsinline(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
fn poster(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn preload(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn src(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 <video>
HTML element.
Provided Methods§
fn autoplay(self, value: impl Into<MaybeDyn<bool>>) -> Self
fn controls(self, value: impl Into<MaybeDyn<bool>>) -> Self
fn crossorigin( self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>, ) -> Self
fn height(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn loop(self, value: impl Into<MaybeDyn<bool>>) -> Self
fn muted(self, value: impl Into<MaybeDyn<bool>>) -> Self
fn playsinline(self, value: impl Into<MaybeDyn<bool>>) -> Self
fn poster(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn preload(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn src(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.