pub struct TranscriptionRequest {
pub audio: Vec<u8>,
pub mime_type: String,
pub filename: Option<String>,
pub language: Option<String>,
pub prompt: Option<String>,
pub model: Option<String>,
}Expand description
Provider-agnostic audio transcription request.
Fields§
§audio: Vec<u8>§mime_type: String§filename: Option<String>§language: Option<String>§prompt: Option<String>§model: Option<String>Implementations§
Source§impl TranscriptionRequest
impl TranscriptionRequest
pub fn new(audio: Vec<u8>, mime_type: impl Into<String>) -> Self
pub fn with_filename(self, filename: impl Into<String>) -> Self
pub fn with_language(self, language: impl Into<String>) -> Self
pub fn with_prompt(self, prompt: impl Into<String>) -> Self
pub fn with_model(self, model: impl Into<String>) -> Self
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 · 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 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