Struct stable_diffusion_api::ImgResponse
source · pub struct ImgResponse<T: Clone> {
pub images: Vec<String>,
pub parameters: T,
pub info: String,
}
Expand description
A struct that represents the response from the Stable Diffusion WebUI API endpoint.
Fields§
§images: Vec<String>
A vector of strings containing base64-encoded images.
parameters: T
The parameters that were provided for the generation request.
info: String
A string containing JSON representing information about the request.
Implementations§
Trait Implementations§
source§impl<T: Clone + Clone> Clone for ImgResponse<T>
impl<T: Clone + Clone> Clone for ImgResponse<T>
source§fn clone(&self) -> ImgResponse<T>
fn clone(&self) -> ImgResponse<T>
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<T: Default + Clone> Default for ImgResponse<T>
impl<T: Default + Clone> Default for ImgResponse<T>
source§fn default() -> ImgResponse<T>
fn default() -> ImgResponse<T>
Returns the “default value” for a type. Read more
source§impl<'de, T> Deserialize<'de> for ImgResponse<T>where
T: Deserialize<'de> + Clone,
impl<'de, T> Deserialize<'de> for ImgResponse<T>where
T: Deserialize<'de> + Clone,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<T> Freeze for ImgResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for ImgResponse<T>where
T: RefUnwindSafe,
impl<T> Send for ImgResponse<T>where
T: Send,
impl<T> Sync for ImgResponse<T>where
T: Sync,
impl<T> Unpin for ImgResponse<T>where
T: Unpin,
impl<T> UnwindSafe for ImgResponse<T>where
T: UnwindSafe,
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