pub struct VttCue<'a> {
pub start: Time,
pub end: Time,
pub name: Option<&'a str>,
pub text: &'a str,
pub note: Option<&'a str>,
pub cue_settings: Option<VttCueSettings>,
}Expand description
A subtitle and associated metadata
Fields§
§start: Time§end: Time§name: Option<&'a str>The identifier is a name that identifies the cue. It can be used to reference the cue from a script. It must not contain a newline and cannot contain the string “–>”. It must end with a single newline.
Ref: https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API#cue_identifier
text: &'a str§note: Option<&'a str>§cue_settings: Option<VttCueSettings>Optional cue settings that belongs to this particular group. If value is Some(CueSettings) it means that at least one settings passed.
Ref: https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API#cue_settings
Implementations§
Trait Implementations§
impl<'a> Copy for VttCue<'a>
impl<'a> Eq for VttCue<'a>
impl<'a> StructuralPartialEq for VttCue<'a>
Auto Trait Implementations§
impl<'a> Freeze for VttCue<'a>
impl<'a> RefUnwindSafe for VttCue<'a>
impl<'a> Send for VttCue<'a>
impl<'a> Sync for VttCue<'a>
impl<'a> Unpin for VttCue<'a>
impl<'a> UnwindSafe for VttCue<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)