pub trait IM {
// Required methods
fn new(
host: String,
model: String,
api_key: String
) -> Result<Self, ImageGenError>
where Self: Sized;
fn generate(
&self,
text: String
) -> impl Future<Output = Result<(), ImageGenError>> + Send;
}
Required Methods§
fn new(
host: String,
model: String,
api_key: String
) -> Result<Self, ImageGenError>where
Self: Sized,
fn generate( &self, text: String ) -> impl Future<Output = Result<(), ImageGenError>> + Send
Object Safety§
This trait is not object safe.