pub struct AudioTranslationRequest {
pub file: String,
pub model: String,
pub prompt: Option<String>,
pub response_format: Option<String>,
pub temperature: Option<f32>,
}
Expand description
Represents a request for audio translation.
Fields§
§file: String
Path to the audio file to be translated.
model: String
Model to be used for translation.
prompt: Option<String>
Optional prompt to guide the translation.
response_format: Option<String>
Optional format of the response.
temperature: Option<f32>
Optional temperature setting for the translation.
Implementations§
Source§impl AudioTranslationRequest
impl AudioTranslationRequest
Sourcepub fn response_format(self, response_format: String) -> Self
pub fn response_format(self, response_format: String) -> Self
Sets the value of the specified field.
Sourcepub fn temperature(self, temperature: f32) -> Self
pub fn temperature(self, temperature: f32) -> Self
Sets the value of the specified field.
Trait Implementations§
Source§impl Clone for AudioTranslationRequest
impl Clone for AudioTranslationRequest
Source§fn clone(&self) -> AudioTranslationRequest
fn clone(&self) -> AudioTranslationRequest
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 moreSource§impl Debug for AudioTranslationRequest
impl Debug for AudioTranslationRequest
Auto Trait Implementations§
impl Freeze for AudioTranslationRequest
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