pub struct TreeTrack {
pub start_time: f64,
pub end_time: f64,
pub identifier: Option<String>,
pub voice: Option<String>,
}Expand description
docling’s TrackSource — where in a time-based track (a WebVTT cue) a
text item came from. Written as the item’s source: [{"kind": "track", …}].
Fields§
§start_time: f64The cue’s start offset in seconds (docling’s WebVTTTimestamp.seconds:
h*3600 + m*60 + s + millis/1000.0, so the float is bit-identical).
end_time: f64The cue’s end offset in seconds.
identifier: Option<String>The cue identifier line, when the cue has one.
voice: Option<String>The <v …> voice annotation the text sits in, when any.
Trait Implementations§
impl StructuralPartialEq for TreeTrack
Auto Trait Implementations§
impl Freeze for TreeTrack
impl RefUnwindSafe for TreeTrack
impl Send for TreeTrack
impl Sync for TreeTrack
impl Unpin for TreeTrack
impl UnsafeUnpin for TreeTrack
impl UnwindSafe for TreeTrack
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