pub trait ImageGenerationModel:
    Clone
    + Send
    + Sync {
    type Response: Send + Sync;
    // Required method
    fn image_generation(
        &self,
        request: ImageGenerationRequest,
    ) -> impl Future<Output = Result<ImageGenerationResponse<Self::Response>, ImageGenerationError>> + Send;
    // Provided method
    fn image_generation_request(&self) -> ImageGenerationRequestBuilder<Self> { ... }
}Available on crate feature 
image only.Required Associated Types§
Required Methods§
fn image_generation( &self, request: ImageGenerationRequest, ) -> impl Future<Output = Result<ImageGenerationResponse<Self::Response>, ImageGenerationError>> + Send
Provided Methods§
fn image_generation_request(&self) -> ImageGenerationRequestBuilder<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.