#[non_exhaustive]pub struct Audio {
pub data_map: DataMap,
pub src: Option<Cow<'static, str>>,
pub crossorigin: Option<Cow<'static, str>>,
pub preload: Option<Cow<'static, str>>,
pub autoplay: Option<Cow<'static, str>>,
pub loop_: Option<Cow<'static, str>>,
pub muted: Option<Cow<'static, str>>,
pub controls: Option<Cow<'static, str>>,
/* private fields */
}
Expand description
The HTML <audio>
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
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
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
Trait Implementations§
source§impl PartialEq<Audio> for Audio
impl PartialEq<Audio> for Audio
source§impl RenderElement for Audio
impl RenderElement for Audio
impl StructuralPartialEq for Audio
Auto Trait Implementations§
impl RefUnwindSafe for Audio
impl Send for Audio
impl Sync for Audio
impl Unpin for Audio
impl UnwindSafe for Audio
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