Trait sal_e_api::Img2ImgApi
source · pub trait Img2ImgApi: Debug + DynClone + Send + Sync + AsAny {
// Required methods
fn img2img<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 dyn GenParams,
) -> Pin<Box<dyn Future<Output = Result<Response, Img2ImgApiError>> + 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 an Img2Img endpoint.