pub struct StreamTranscribe { /* private fields */ }Expand description
Builder returned by stream_transcribe; .await opens the stream.
Implementations§
Source§impl StreamTranscribe
impl StreamTranscribe
Sourcepub fn include_raw_chunks(self) -> Self
pub fn include_raw_chunks(self) -> Self
Forwards raw provider chunks as TranscriptionStreamPart::Raw.
Source§impl StreamTranscribe
impl StreamTranscribe
Sourcepub fn header(self, name: &str, value: &str) -> Self
pub fn header(self, name: &str, value: &str) -> Self
Adds one request header; invalid names or values are ignored.
Sourcepub fn provider_options(self, options: ProviderOptions) -> Self
pub fn provider_options(self, options: ProviderOptions) -> Self
Sets the provider-specific options.
Sourcepub fn provider_option(
self,
provider: impl Into<String>,
options: JsonObject,
) -> Self
pub fn provider_option( self, provider: impl Into<String>, options: JsonObject, ) -> Self
Sets the options of one provider.
Sourcepub fn cancellation(self, token: CancellationToken) -> Self
pub fn cancellation(self, token: CancellationToken) -> Self
Sets the cancellation token.
Sourcepub fn telemetry(self, options: TelemetryOptions) -> Self
pub fn telemetry(self, options: TelemetryOptions) -> Self
Sets the telemetry options.
Trait Implementations§
Source§impl Debug for StreamTranscribe
impl Debug for StreamTranscribe
Source§impl IntoFuture for StreamTranscribe
impl IntoFuture for StreamTranscribe
Source§type Output = Result<StreamTranscribeResult, Error>
type Output = Result<StreamTranscribeResult, Error>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <StreamTranscribe as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <StreamTranscribe as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for StreamTranscribe
impl !Sync for StreamTranscribe
impl !UnwindSafe for StreamTranscribe
impl Freeze for StreamTranscribe
impl Send for StreamTranscribe
impl Unpin for StreamTranscribe
impl UnsafeUnpin for StreamTranscribe
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