#[non_exhaustive]pub struct CreateSpeechRequestBody {
pub model: String,
pub input: String,
pub voice: SpeechVoice,
pub instructions: Option<String>,
pub response_format: Option<AudioResponseFormat>,
pub speed: Option<Number>,
pub stream_format: Option<SpeechStreamFormat>,
pub rest: Rest,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.model: String§input: String§voice: SpeechVoice§instructions: Option<String>§response_format: Option<AudioResponseFormat>§speed: Option<Number>§stream_format: Option<SpeechStreamFormat>§rest: RestImplementations§
Source§impl CreateSpeechRequestBody
impl CreateSpeechRequestBody
Sourcepub fn builder(
model: String,
input: String,
voice: SpeechVoice,
) -> CreateSpeechRequestBodyBuilder
pub fn builder( model: String, input: String, voice: SpeechVoice, ) -> CreateSpeechRequestBodyBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for CreateSpeechRequestBody
impl Clone for CreateSpeechRequestBody
Source§impl Debug for CreateSpeechRequestBody
impl Debug for CreateSpeechRequestBody
Source§impl DeclaredFields for CreateSpeechRequestBody
impl DeclaredFields for CreateSpeechRequestBody
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for CreateSpeechRequestBody
impl<'de> Deserialize<'de> for CreateSpeechRequestBody
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
impl Eq for CreateSpeechRequestBody
Source§impl PartialEq for CreateSpeechRequestBody
impl PartialEq for CreateSpeechRequestBody
Source§impl Serialize for CreateSpeechRequestBody
impl Serialize for CreateSpeechRequestBody
impl StructuralPartialEq for CreateSpeechRequestBody
Auto Trait Implementations§
impl Freeze for CreateSpeechRequestBody
impl RefUnwindSafe for CreateSpeechRequestBody
impl Send for CreateSpeechRequestBody
impl Sync for CreateSpeechRequestBody
impl Unpin for CreateSpeechRequestBody
impl UnsafeUnpin for CreateSpeechRequestBody
impl UnwindSafe for CreateSpeechRequestBody
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