#[non_exhaustive]pub struct ImageResponse {
pub image: Media,
pub revised_prompt: Option<String>,
pub id: Option<String>,
}Expand description
An image made by a provider.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.image: MediaThe image, as bytes (base64) or as a URL, depending on the provider.
revised_prompt: Option<String>The prompt the provider actually used, if it rewrote yours.
id: Option<String>ID of the image in the storage of the ImageGenerator, if
it has one.
Implementations§
Source§impl ImageResponse
impl ImageResponse
Trait Implementations§
Source§impl Clone for ImageResponse
impl Clone for ImageResponse
Source§impl Debug for ImageResponse
impl Debug 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