pub struct Captions {
pub style: TextStyle,
pub cues: Vec<CaptionCue>,
}Expand description
What a caption track shows: its cues, in one style.
Fields§
§style: TextStyleHow every cue of the track looks.
cues: Vec<CaptionCue>Cues in timeline order, none overlapping another: a track shows one cue at a time. Simultaneous captions take one track each.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Captions
impl<'de> Deserialize<'de> for Captions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Captions
Auto Trait Implementations§
impl Freeze for Captions
impl RefUnwindSafe for Captions
impl Send for Captions
impl Sync for Captions
impl Unpin for Captions
impl UnsafeUnpin for Captions
impl UnwindSafe for Captions
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