ImageGeneration

Trait ImageGeneration 

Source
pub trait ImageGeneration<M>{
    // Required method
    fn image_generation(
        &self,
        prompt: &str,
        size: &(u32, u32),
    ) -> impl Future<Output = Result<ImageGenerationRequestBuilder<M>, ImageGenerationError>> + Send;
}
Available on crate feature image only.

Required Methods§

Source

fn image_generation( &self, prompt: &str, size: &(u32, u32), ) -> impl Future<Output = Result<ImageGenerationRequestBuilder<M>, ImageGenerationError>> + Send

Generates a transcription request builder for the given file. This function is meant to be called by the user to further customize the request at transcription time before sending it.

❗IMPORTANT: The type that implements this trait might have already populated fields in the builder (the exact fields depend on the type). For fields that have already been set by the model, calling the corresponding method on the builder will overwrite the value set by the model.

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.

Implementors§