pub trait AudioGenerationModel:
Sized
+ Clone
+ WasmCompatSend
+ WasmCompatSync {
type Response: Send + Sync;
type Client;
// Required methods
fn make(client: &Self::Client, model: impl Into<String>) -> Self;
fn audio_generation(
&self,
request: AudioGenerationRequest,
) -> impl Future<Output = Result<AudioGenerationResponse<Self::Response>, AudioGenerationError>> + Send;
// Provided method
fn audio_generation_request(&self) -> AudioGenerationRequestBuilder<Self> { ... }
}Available on crate feature
audio only.Required Associated Types§
Required Methods§
fn make(client: &Self::Client, model: impl Into<String>) -> Self
fn audio_generation( &self, request: AudioGenerationRequest, ) -> impl Future<Output = Result<AudioGenerationResponse<Self::Response>, AudioGenerationError>> + Send
Provided Methods§
fn audio_generation_request(&self) -> AudioGenerationRequestBuilder<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".