pub struct TranslationCreateParams {
pub file: Value,
pub model: String,
pub prompt: Option<String>,
pub response_format: Option<TranslationCreateParamsResponseFormat>,
pub temperature: Option<f64>,
}Fields§
§file: ValueThe audio file object (not file name) translate, in one of these formats: flac,
model: StringID of the model to use.
prompt: Option<String>An optional text to guide the model’s style or continue a previous audio
response_format: Option<TranslationCreateParamsResponseFormat>The format of the output, in one of these options: json, text, srt,
temperature: Option<f64>The sampling temperature, between 0 and 1.
Trait Implementations§
Source§impl Clone for TranslationCreateParams
impl Clone for TranslationCreateParams
Source§fn clone(&self) -> TranslationCreateParams
fn clone(&self) -> TranslationCreateParams
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 TranslationCreateParams
impl Debug for TranslationCreateParams
Source§impl<'de> Deserialize<'de> for TranslationCreateParams
impl<'de> Deserialize<'de> for TranslationCreateParams
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
Auto Trait Implementations§
impl Freeze for TranslationCreateParams
impl RefUnwindSafe for TranslationCreateParams
impl Send for TranslationCreateParams
impl Sync for TranslationCreateParams
impl Unpin for TranslationCreateParams
impl UnsafeUnpin for TranslationCreateParams
impl UnwindSafe for TranslationCreateParams
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