#[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