pub struct TranscriptionParamsBuilder { /* private fields */ }Implementations§
Source§impl TranscriptionParamsBuilder
impl TranscriptionParamsBuilder
pub fn new() -> Self
pub fn language(self, lang: &str) -> Self
pub fn translate(self, translate: bool) -> Self
pub fn temperature(self, temperature: f32) -> Self
pub fn enable_timestamps(self) -> Self
pub fn disable_timestamps(self) -> Self
pub fn single_segment(self, single: bool) -> Self
pub fn max_tokens(self, max_tokens: i32) -> Self
pub fn initial_prompt(self, prompt: &str) -> Self
pub fn n_threads(self, n_threads: i32) -> Self
pub fn build(self) -> TranscriptionParams
Trait Implementations§
Source§impl Clone for TranscriptionParamsBuilder
impl Clone for TranscriptionParamsBuilder
Source§fn clone(&self) -> TranscriptionParamsBuilder
fn clone(&self) -> TranscriptionParamsBuilder
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 moreAuto Trait Implementations§
impl Freeze for TranscriptionParamsBuilder
impl RefUnwindSafe for TranscriptionParamsBuilder
impl Send for TranscriptionParamsBuilder
impl Sync for TranscriptionParamsBuilder
impl Unpin for TranscriptionParamsBuilder
impl UnwindSafe for TranscriptionParamsBuilder
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