pub struct WebVttCue {
pub identifier: Option<String>,
pub text: String,
pub settings: Option<String>,
pub start: Moment,
pub end: Moment,
}Expand description
WebVTT subtitle cue (event)
Fields§
§identifier: Option<String>WebVTT identifier
text: StringText content of cue
settings: Option<String>Cue settings
start: MomentStart time of cue
end: MomentEnd time of cue
Trait Implementations§
source§impl TextEvent for WebVttCue
impl TextEvent for WebVttCue
source§fn unformatted_text(&self) -> Cow<'_, String>
fn unformatted_text(&self) -> Cow<'_, String>
Get text content with all formatting tags removed
source§fn strip_formatting(&mut self)
fn strip_formatting(&mut self)
Remove all formatting tags from event text
source§impl TextEventInterface for WebVttCue
impl TextEventInterface for WebVttCue
source§impl TimedEvent for WebVttCue
impl TimedEvent for WebVttCue
Auto Trait Implementations§
impl RefUnwindSafe for WebVttCue
impl Send for WebVttCue
impl Sync for WebVttCue
impl Unpin for WebVttCue
impl UnwindSafe for WebVttCue
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