ImageGen

Trait ImageGen 

Source
pub trait ImageGen: HasCapability {
    // Provided method
    fn generate_image<'life0, 'life1, 'async_trait>(
        &'life0 self,
        prompt: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Provided Methods§

Source

fn generate_image<'life0, 'life1, 'async_trait>( &'life0 self, prompt: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§

Source§

impl ImageGen for OpenAI

Source§

impl<P, C> ImageGen for Model<P, C>
where P: Provider + ImageGen, C: ImageGen + ?Sized + Send + Sync,