pub struct ImageResponse {
pub model: String,
pub content_type: String,
pub bytes: Vec<u8>,
pub usage: Option<TokenUsage>,
pub cost: Option<CostEstimate>,
}Expand description
One generated image normalized across providers.
Fields§
§model: StringActual provider model.
content_type: StringOutput MIME type.
bytes: Vec<u8>Complete generated image bytes.
usage: Option<TokenUsage>Provider token usage, when returned.
cost: Option<CostEstimate>Trait Implementations§
Source§impl Clone for ImageResponse
impl Clone for ImageResponse
Source§fn clone(&self) -> ImageResponse
fn clone(&self) -> ImageResponse
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 ImageResponse
impl Debug for ImageResponse
impl Eq for ImageResponse
Source§impl PartialEq for ImageResponse
impl PartialEq for ImageResponse
impl StructuralPartialEq for ImageResponse
Auto Trait Implementations§
impl Freeze for ImageResponse
impl RefUnwindSafe for ImageResponse
impl Send for ImageResponse
impl Sync for ImageResponse
impl Unpin for ImageResponse
impl UnsafeUnpin for ImageResponse
impl UnwindSafe for ImageResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.