pub struct ImageResult {
pub images: Vec<GeneratedImage>,
pub is_retryable: Option<bool>,
pub warnings: Vec<Warning>,
pub provider_metadata: Option<ProviderMetadata>,
pub response: ResponseMetadata,
pub usage: Option<ImageUsage>,
}Expand description
Result of an image generation call.
Fields§
§images: Vec<GeneratedImage>Generated images.
is_retryable: Option<bool>Whether an empty result may be retried; None means “use the default”.
warnings: Vec<Warning>Warnings.
provider_metadata: Option<ProviderMetadata>Provider-specific metadata (per-image metadata under images).
response: ResponseMetadataResponse metadata; timestamp and model_id are expected to be set.
usage: Option<ImageUsage>Token usage, if reported.
Trait Implementations§
Source§impl Clone for ImageResult
impl Clone for ImageResult
Source§fn clone(&self) -> ImageResult
fn clone(&self) -> ImageResult
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 ImageResult
impl Debug for ImageResult
Source§impl<'de> Deserialize<'de> for ImageResult
impl<'de> Deserialize<'de> for ImageResult
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
Source§impl PartialEq for ImageResult
impl PartialEq for ImageResult
Source§impl Serialize for ImageResult
impl Serialize for ImageResult
impl StructuralPartialEq for ImageResult
Auto Trait Implementations§
impl Freeze for ImageResult
impl RefUnwindSafe for ImageResult
impl Send for ImageResult
impl Sync for ImageResult
impl Unpin for ImageResult
impl UnsafeUnpin for ImageResult
impl UnwindSafe for ImageResult
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