Struct sal_e_api::StableDiffusionWebUiApi
source · pub struct StableDiffusionWebUiApi {
pub client: Api,
pub txt2img_defaults: Txt2ImgRequest,
pub img2img_defaults: Img2ImgRequest,
}
Expand description
Struct wrapping a connection to the Stable Diffusion WebUI API.
Fields§
§client: Api
The Stable Diffusion WebUI client.
txt2img_defaults: Txt2ImgRequest
Default parameters for the Txt2Img endpoint.
img2img_defaults: Img2ImgRequest
Default parameters for the Img2Img endpoint.
Implementations§
Trait Implementations§
source§impl Clone for StableDiffusionWebUiApi
impl Clone for StableDiffusionWebUiApi
source§fn clone(&self) -> StableDiffusionWebUiApi
fn clone(&self) -> StableDiffusionWebUiApi
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StableDiffusionWebUiApi
impl Debug for StableDiffusionWebUiApi
source§impl Default for StableDiffusionWebUiApi
impl Default for StableDiffusionWebUiApi
source§fn default() -> StableDiffusionWebUiApi
fn default() -> StableDiffusionWebUiApi
Returns the “default value” for a type. Read more
source§impl Img2ImgApi for StableDiffusionWebUiApi
impl Img2ImgApi for StableDiffusionWebUiApi
source§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 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,
Generates an image using image-to-image. Read more
source§impl Txt2ImgApi for StableDiffusionWebUiApi
impl Txt2ImgApi for StableDiffusionWebUiApi
source§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 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,
Generates an image using text-to-image. Read more
Auto Trait Implementations§
impl Freeze for StableDiffusionWebUiApi
impl !RefUnwindSafe for StableDiffusionWebUiApi
impl Send for StableDiffusionWebUiApi
impl Sync for StableDiffusionWebUiApi
impl Unpin for StableDiffusionWebUiApi
impl !UnwindSafe for StableDiffusionWebUiApi
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more