Struct stable_diffusion_api::Api
source · pub struct Api { /* private fields */ }
Expand description
Struct representing a connection to a Stable Diffusion WebUI API.
Implementations§
source§impl Api
impl Api
sourcepub fn new_with_url<S>(url: S) -> Result<Self, ApiError>
pub fn new_with_url<S>(url: S) -> Result<Self, ApiError>
sourcepub fn new_with_client_and_url<S>(
client: Client,
url: S,
) -> Result<Self, ApiError>
pub fn new_with_client_and_url<S>( client: Client, url: S, ) -> Result<Self, ApiError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Api
impl !RefUnwindSafe for Api
impl Send for Api
impl Sync for Api
impl Unpin for Api
impl !UnwindSafe for Api
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