Skip to main content

DynImageModel

Trait DynImageModel 

Source
pub trait DynImageModel:
    Send
    + Sync
    + 'static {
    // Required methods
    fn provider(&self) -> &ProviderId;
    fn model_id(&self) -> &ModelId;
    fn max_images_per_call(&self) -> Option<usize>;
    fn do_generate(
        &self,
        options: ImageOptions,
    ) -> BoxFuture<'_, Result<ImageResult, ProviderError>>;
}
Expand description

Object-safe counterpart of ImageModel.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§