pub struct ImageGenerationResponse {
pub created: u64,
pub images: Vec<GeneratedImage>,
}Expand description
Response from an image generation request.
Fields§
§created: u64Timestamp when the images were created.
images: Vec<GeneratedImage>The generated images.
Implementations§
Source§impl ImageGenerationResponse
impl ImageGenerationResponse
Sourcepub fn first(&self) -> Option<&GeneratedImage>
pub fn first(&self) -> Option<&GeneratedImage>
Get the first image (convenience for n=1 requests).
Trait Implementations§
Source§impl Clone for ImageGenerationResponse
impl Clone for ImageGenerationResponse
Source§fn clone(&self) -> ImageGenerationResponse
fn clone(&self) -> ImageGenerationResponse
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ImageGenerationResponse
impl RefUnwindSafe for ImageGenerationResponse
impl Send for ImageGenerationResponse
impl Sync for ImageGenerationResponse
impl Unpin for ImageGenerationResponse
impl UnwindSafe for ImageGenerationResponse
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