pub struct ImageResult {
pub images: Vec<GeneratedImage>,
pub warnings: Vec<Warning>,
pub usage: Option<ImageUsage>,
pub provider_metadata: Option<ProviderMetadata>,
pub request: Option<RequestInfo>,
pub response: Option<ResponseInfo>,
}Expand description
Result of ImageModel::do_generate.
Fields§
§images: Vec<GeneratedImage>Generated images.
warnings: Vec<Warning>Warnings for the call, e.g. unsupported settings coerced away.
usage: Option<ImageUsage>Token usage if reported by the provider (e.g. OpenAI gpt-image-1).
provider_metadata: Option<ProviderMetadata>Provider-specific metadata.
request: Option<RequestInfo>Request info (telemetry).
response: Option<ResponseInfo>Response info (telemetry).
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 moreAuto 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