pub enum AudioResponse {
Json(ShortAudioResponse),
VerboseJson(VerboseAudioResponse),
Text(String),
Srt(String),
Vtt(String),
}
Variants§
Trait Implementations§
Source§impl Clone for AudioResponse
impl Clone for AudioResponse
Source§fn clone(&self) -> AudioResponse
fn clone(&self) -> AudioResponse
Returns a copy 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 moreSource§impl Debug for AudioResponse
impl Debug for AudioResponse
Source§impl<'de> Deserialize<'de> for AudioResponse
impl<'de> Deserialize<'de> for AudioResponse
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 FormRequest<AudioResponse> for TranscriptionRequest
impl FormRequest<AudioResponse> for TranscriptionRequest
const ENDPOINT: &'static str = "/audio/transcriptions"
fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 OpenAiClient,
) -> Pin<Box<dyn Future<Output = Result<AudioResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_response<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
client: &'life1 Client,
final_url: String,
key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl FormRequest<AudioResponse> for TranslationRequest
impl FormRequest<AudioResponse> for TranslationRequest
const ENDPOINT: &'static str = "/audio/translations"
fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 OpenAiClient,
) -> Pin<Box<dyn Future<Output = Result<AudioResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_response<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
client: &'life1 Client,
final_url: String,
key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for AudioResponse
impl RefUnwindSafe for AudioResponse
impl Send for AudioResponse
impl Sync for AudioResponse
impl Unpin for AudioResponse
impl UnwindSafe for AudioResponse
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