pub struct TranscriptSegment {
pub text: String,
pub start_ms: u64,
pub end_ms: u64,
pub speaker_id: Option<u8>,
pub words: Vec<WordTimestamp>,
}Expand description
A contiguous segment of transcript text, optionally associated with a speaker.
Fields§
§text: String§start_ms: u64§end_ms: u64§speaker_id: Option<u8>Optional speaker identifier (from diarization).
words: Vec<WordTimestamp>Implementations§
Source§impl TranscriptSegment
impl TranscriptSegment
Sourcepub fn duration_ms(&self) -> u64
pub fn duration_ms(&self) -> u64
Duration of this segment in milliseconds.
Trait Implementations§
Source§impl Clone for TranscriptSegment
impl Clone for TranscriptSegment
Source§fn clone(&self) -> TranscriptSegment
fn clone(&self) -> TranscriptSegment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TranscriptSegment
impl Debug for TranscriptSegment
Source§impl PartialEq for TranscriptSegment
impl PartialEq for TranscriptSegment
impl StructuralPartialEq for TranscriptSegment
Auto Trait Implementations§
impl Freeze for TranscriptSegment
impl RefUnwindSafe for TranscriptSegment
impl Send for TranscriptSegment
impl Sync for TranscriptSegment
impl Unpin for TranscriptSegment
impl UnsafeUnpin for TranscriptSegment
impl UnwindSafe for TranscriptSegment
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