#[non_exhaustive]pub struct TranscriptionRequest {Show 15 fields
pub file: String,
pub model: OpenAiModelId,
pub chunking_strategy: Option<AudioChunkingStrategy>,
pub include: Option<Vec<TranscriptionInclude>>,
pub keywords: Option<Vec<String>>,
pub known_speaker_names: Option<Vec<String>>,
pub known_speaker_references: Option<Vec<String>>,
pub language: Option<String>,
pub languages: Option<Vec<String>>,
pub prompt: Option<String>,
pub response_format: Option<TranscriptionResponseFormat>,
pub stream: Option<bool>,
pub temperature: Option<f64>,
pub timestamp_granularities: Option<Vec<TimestampGranularity>>,
pub extra: Extra,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.file: StringMultipart file content; after gproxy ingress normalization this is a
data:<mime>;base64,... URL.
model: OpenAiModelId§chunking_strategy: Option<AudioChunkingStrategy>§include: Option<Vec<TranscriptionInclude>>§keywords: Option<Vec<String>>§known_speaker_names: Option<Vec<String>>§known_speaker_references: Option<Vec<String>>§language: Option<String>§languages: Option<Vec<String>>§prompt: Option<String>§response_format: Option<TranscriptionResponseFormat>§stream: Option<bool>§temperature: Option<f64>§timestamp_granularities: Option<Vec<TimestampGranularity>>§extra: ExtraImplementations§
Trait Implementations§
Source§impl Clone for TranscriptionRequest
impl Clone for TranscriptionRequest
Source§fn clone(&self) -> TranscriptionRequest
fn clone(&self) -> TranscriptionRequest
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 TranscriptionRequest
impl Debug for TranscriptionRequest
Source§impl<'de> Deserialize<'de> for TranscriptionRequest
impl<'de> Deserialize<'de> for TranscriptionRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TranscriptionRequest
impl PartialEq for TranscriptionRequest
Source§impl Serialize for TranscriptionRequest
impl Serialize for TranscriptionRequest
impl StructuralPartialEq for TranscriptionRequest
Auto Trait Implementations§
impl Freeze for TranscriptionRequest
impl RefUnwindSafe for TranscriptionRequest
impl Send for TranscriptionRequest
impl Sync for TranscriptionRequest
impl Unpin for TranscriptionRequest
impl UnsafeUnpin for TranscriptionRequest
impl UnwindSafe for TranscriptionRequest
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