pub struct GenerateImageResult {
pub images: Vec<GeneratedImage>,
pub calls: Vec<ImageCall>,
pub warnings: Vec<Warning>,
pub responses: Vec<ResponseMetadata>,
pub provider_metadata: ProviderMetadata,
pub usage: ImageUsage,
}Expand description
Result of generate_image.
Fields§
§images: Vec<GeneratedImage>All images, in call order.
calls: Vec<ImageCall>The individual provider calls.
warnings: Vec<Warning>Warnings of all calls.
responses: Vec<ResponseMetadata>Response metadata of all calls.
provider_metadata: ProviderMetadataProvider metadata merged over all calls.
usage: ImageUsageUsage summed over all calls.
Implementations§
Source§impl GenerateImageResult
impl GenerateImageResult
Sourcepub fn image(&self) -> Option<&GeneratedImage>
pub fn image(&self) -> Option<&GeneratedImage>
The first image.
Trait Implementations§
Source§impl Clone for GenerateImageResult
impl Clone for GenerateImageResult
Source§fn clone(&self) -> GenerateImageResult
fn clone(&self) -> GenerateImageResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GenerateImageResult
impl Debug for GenerateImageResult
Source§impl PartialEq for GenerateImageResult
impl PartialEq for GenerateImageResult
impl StructuralPartialEq for GenerateImageResult
Auto Trait Implementations§
impl Freeze for GenerateImageResult
impl RefUnwindSafe for GenerateImageResult
impl Send for GenerateImageResult
impl Sync for GenerateImageResult
impl Unpin for GenerateImageResult
impl UnsafeUnpin for GenerateImageResult
impl UnwindSafe for GenerateImageResult
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