pub struct MediaElementSpec {
pub id: String,
pub kind: MediaElementKind,
pub src: Option<String>,
pub poster: Option<String>,
pub camera: Option<String>,
pub autoplay: bool,
pub looping: bool,
pub muted: bool,
pub controls: bool,
pub volume: f32,
pub playback_rate: f32,
}Expand description
Extracted declarative attributes of an <audio> or <video> DOM node.
Fields§
§id: String§kind: MediaElementKind§src: Option<String>§poster: Option<String>§camera: Option<String>§autoplay: bool§looping: bool§muted: bool§controls: bool§volume: f32§playback_rate: f32Trait Implementations§
Source§impl Clone for MediaElementSpec
impl Clone for MediaElementSpec
Source§impl Debug for MediaElementSpec
impl Debug for MediaElementSpec
Source§impl PartialEq for MediaElementSpec
impl PartialEq for MediaElementSpec
impl StructuralPartialEq for MediaElementSpec
Auto Trait Implementations§
impl Forget for MediaElementSpec
impl Freeze for MediaElementSpec
impl Move for MediaElementSpec
impl RefUnwindSafe for MediaElementSpec
impl Send for MediaElementSpec
impl Sync for MediaElementSpec
impl Unpin for MediaElementSpec
impl UnsafeUnpin for MediaElementSpec
impl UnwindSafe for MediaElementSpec
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