pub trait Txt2ImgApi:
Debug
+ DynClone
+ Send
+ Sync
+ AsAny {
// Required methods
fn txt2img<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 dyn GenParams,
) -> Pin<Box<dyn Future<Output = Result<Response, Txt2ImgApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn gen_params(
&self,
user_settings: Option<&dyn GenParams>,
) -> Box<dyn GenParams>;
}Expand description
Trait representing a Txt2Img endpoint.