#[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: bool
Enable the track if no other text track is more suitable
Trait Implementations§
Source§impl RenderElement for TextTrack
impl RenderElement for TextTrack
impl StructuralPartialEq for TextTrack
Auto Trait Implementations§
impl Freeze for TextTrack
impl RefUnwindSafe for TextTrack
impl Send for TextTrack
impl Sync for TextTrack
impl Unpin for TextTrack
impl UnwindSafe for TextTrack
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