pub struct StreamOptions {
pub format: Option<AudioFormat>,
pub language: Option<String>,
pub diarize: bool,
pub model: Option<String>,
pub extra: Option<Value>,
}Expand description
Per-call options for opening a streaming session. Mirrors the “common knobs” across the four MVP backends.
Fields§
§format: Option<AudioFormat>Audio format the caller intends to push. Backends use this to
negotiate the WS handshake (encoding=…&sample_rate=…).
language: Option<String>BCP-47 hint ("en-US"). None triggers detection on backends
that support it.
diarize: boolRequest diarization on backends whose CAPS support it.
model: Option<String>Model override (e.g. Deepgram "nova-3").
extra: Option<Value>Backend-specific extra knobs round-tripped as JSON. Avoids adding a knob to this struct for every backend quirk.
Trait Implementations§
Source§impl Clone for StreamOptions
impl Clone for StreamOptions
Source§fn clone(&self) -> StreamOptions
fn clone(&self) -> StreamOptions
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 StreamOptions
impl Debug for StreamOptions
Source§impl Default for StreamOptions
impl Default for StreamOptions
Source§fn default() -> StreamOptions
fn default() -> StreamOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamOptions
impl RefUnwindSafe for StreamOptions
impl Send for StreamOptions
impl Sync for StreamOptions
impl Unpin for StreamOptions
impl UnsafeUnpin for StreamOptions
impl UnwindSafe for StreamOptions
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