#[non_exhaustive]pub struct Video {
pub src: Option<Cow<'static, str>>,
pub crossorigin: Option<Cow<'static, str>>,
pub poster: Option<Cow<'static, str>>,
pub preload: Option<Cow<'static, str>>,
pub autoplay: Option<Cow<'static, str>>,
pub plays_inline: bool,
pub loop_: Option<Cow<'static, str>>,
pub muted: Option<Cow<'static, str>>,
pub controls: Option<Cow<'static, str>>,
pub width: Option<i64>,
pub height: Option<i64>,
/* private fields */
}
Expand description
The HTML <video>
element
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.src: Option<Cow<'static, str>>
Address of the resource
crossorigin: Option<Cow<'static, str>>
How the element handles crossorigin requests
poster: Option<Cow<'static, str>>
Poster frame to show prior to video playback
preload: Option<Cow<'static, str>>
Hints how much buffering the media resource will likely need
autoplay: Option<Cow<'static, str>>
Hint that the media resource can be started automatically when the page is loaded
plays_inline: bool
Encourage the user agent to display video content within the element’s playback area
loop_: Option<Cow<'static, str>>
Whether to loop the media resource
muted: Option<Cow<'static, str>>
Whether to mute the media resource by default
controls: Option<Cow<'static, str>>
Show user agent controls
width: Option<i64>
Horizontal dimension
height: Option<i64>
Vertical dimension
Trait Implementations§
source§impl PartialEq<Video> for Video
impl PartialEq<Video> for Video
source§impl PartialOrd<Video> for Video
impl PartialOrd<Video> for Video
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more