#[non_exhaustive]pub struct Video {
pub data_map: DataMap,
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.data_map: DataMap
§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 RenderElement for Video
impl RenderElement for Video
impl StructuralPartialEq for Video
Auto Trait Implementations§
impl RefUnwindSafe for Video
impl Send for Video
impl Sync for Video
impl Unpin for Video
impl UnwindSafe for Video
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