#[non_exhaustive]pub struct Audio {
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.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 PartialOrd<Audio> for Audio
impl PartialOrd<Audio> for Audio
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