ImageGenerationClientDyn

Trait ImageGenerationClientDyn 

Source
pub trait ImageGenerationClientDyn {
    // Required method
    fn image_generation_model<'a>(
        &self,
        model: &str,
    ) -> Box<dyn ImageGenerationModelDyn + 'a>;
}
👎Deprecated since 0.25.0: DynClientBuilder and related features have been deprecated and will be removed in a future release. In this case, use ImageGenerationClient instead.
Available on crate feature image only.

Required Methods§

Source

fn image_generation_model<'a>( &self, model: &str, ) -> Box<dyn ImageGenerationModelDyn + 'a>

👎Deprecated since 0.25.0: DynClientBuilder and related features have been deprecated and will be removed in a future release. In this case, use ImageGenerationClient instead.

Create an image generation model with the given name.

Implementors§

Source§

impl<T: ImageGenerationClient<ImageGenerationModel = M>, M: ImageGenerationModel + 'static> ImageGenerationClientDyn for T