pub struct Transcription {
pub text: String,
pub segments: Vec<TranscriptSegment>,
}Expand description
A transcription result: the full text plus optional timestamped segments.
Segments are populated whenever the engine returns them (Whisper
verbose_json via the Gateway or local whisper.cpp); parakeet returns text
only, so its segments is empty.
Fields§
§text: String§segments: Vec<TranscriptSegment>Trait Implementations§
Source§impl Clone for Transcription
impl Clone for Transcription
Source§fn clone(&self) -> Transcription
fn clone(&self) -> Transcription
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Transcription
impl Debug for Transcription
Source§impl Default for Transcription
impl Default for Transcription
Source§fn default() -> Transcription
fn default() -> Transcription
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Transcription
impl RefUnwindSafe for Transcription
impl Send for Transcription
impl Sync for Transcription
impl Unpin for Transcription
impl UnsafeUnpin for Transcription
impl UnwindSafe for Transcription
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