pub enum TranscriptFormat {
Plain,
Lines,
WhisperJson,
Srt,
WebVtt,
}Expand description
Variants describing transcript format.
Variants§
Plain
The plain variant.
Lines
The lines variant.
WhisperJson
The whisper JSON variant.
Srt
The srt variant.
WebVtt
The web vtt variant.
Implementations§
Source§impl TranscriptFormat
impl TranscriptFormat
Sourcepub fn from_extension(extension: &str) -> Option<Self>
pub fn from_extension(extension: &str) -> Option<Self>
Infers a transcript format from a file extension.
Trait Implementations§
Source§impl Clone for TranscriptFormat
impl Clone for TranscriptFormat
Source§fn clone(&self) -> TranscriptFormat
fn clone(&self) -> TranscriptFormat
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 moreimpl Copy for TranscriptFormat
Source§impl Debug for TranscriptFormat
impl Debug for TranscriptFormat
impl Eq for TranscriptFormat
Source§impl PartialEq for TranscriptFormat
impl PartialEq for TranscriptFormat
Source§fn eq(&self, other: &TranscriptFormat) -> bool
fn eq(&self, other: &TranscriptFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TranscriptFormat
Auto Trait Implementations§
impl Freeze for TranscriptFormat
impl RefUnwindSafe for TranscriptFormat
impl Send for TranscriptFormat
impl Sync for TranscriptFormat
impl Unpin for TranscriptFormat
impl UnsafeUnpin for TranscriptFormat
impl UnwindSafe for TranscriptFormat
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