#[non_exhaustive]pub struct TextTrack {
pub data_map: DataMap,
pub kind: Option<Cow<'static, str>>,
pub src: Option<Cow<'static, str>>,
pub srclang: Option<Cow<'static, str>>,
pub label: Option<Cow<'static, str>>,
pub default: bool,
/* private fields */
}Expand description
The HTML <track> 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§kind: Option<Cow<'static, str>>The type of text track
src: Option<Cow<'static, str>>Address of the resource
srclang: Option<Cow<'static, str>>Language of the text track
label: Option<Cow<'static, str>>User-visible label
default: boolEnable the track if no other text track is more suitable