Struct openai_api_rs::v1::audio::AudioTranslationRequest
source · pub struct AudioTranslationRequest {
pub file: String,
pub model: String,
pub prompt: Option<String>,
pub response_format: Option<String>,
pub temperature: Option<f32>,
}
Fields§
§file: String
§model: String
§prompt: Option<String>
§response_format: Option<String>
§temperature: Option<f32>
Implementations§
source§impl AudioTranslationRequest
impl AudioTranslationRequest
pub fn prompt(self, prompt: String) -> Self
pub fn response_format(self, response_format: String) -> Self
pub fn temperature(self, temperature: f32) -> Self
Trait Implementations§
source§impl Clone for AudioTranslationRequest
impl Clone for AudioTranslationRequest
source§fn clone(&self) -> AudioTranslationRequest
fn clone(&self) -> AudioTranslationRequest
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 AudioTranslationRequest
impl Debug for AudioTranslationRequest
Auto Trait Implementations§
impl RefUnwindSafe for AudioTranslationRequest
impl Send for AudioTranslationRequest
impl Sync for AudioTranslationRequest
impl Unpin for AudioTranslationRequest
impl UnwindSafe for AudioTranslationRequest
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