pub struct TranscriptionOptions {
pub model: String,
pub language: String,
pub timestamps: bool,
pub cancel: Option<CancelFlag>,
}Expand description
Options controlling a single transcription request.
Fields§
§model: StringModel name (local ggml name or remote model id).
language: StringBCP-47 / ISO language code, or "auto".
timestamps: boolRequest segment-level timestamps when the provider supports them.
cancel: Option<CancelFlag>Optional cooperative cancel flag (honoured by local whisper decode).
Implementations§
Source§impl TranscriptionOptions
impl TranscriptionOptions
pub fn with_cancel(self, flag: CancelFlag) -> Self
Trait Implementations§
Source§impl Clone for TranscriptionOptions
impl Clone for TranscriptionOptions
Source§fn clone(&self) -> TranscriptionOptions
fn clone(&self) -> TranscriptionOptions
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 TranscriptionOptions
impl Debug for TranscriptionOptions
Auto Trait Implementations§
impl Freeze for TranscriptionOptions
impl RefUnwindSafe for TranscriptionOptions
impl Send for TranscriptionOptions
impl Sync for TranscriptionOptions
impl Unpin for TranscriptionOptions
impl UnsafeUnpin for TranscriptionOptions
impl UnwindSafe for TranscriptionOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more