pub struct Response {
pub images: Vec<Vec<u8>>,
pub params: Box<dyn ImageParams>,
pub gen_params: Box<dyn GenParams>,
}
Expand description
Struct representing a response from a Stable Diffusion API image generation endpoint.
Fields§
§images: Vec<Vec<u8>>
A vector of images.
params: Box<dyn ImageParams>
The parameters describing the generated image.
gen_params: Box<dyn GenParams>
The parameters that were provided for the generation request.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Response
impl !RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl !UnwindSafe for Response
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