pub struct ImageGenResult {
pub image_data: String,
pub format: ImageFormat,
pub revised_prompt: Option<String>,
pub model_used: String,
pub generation_ms: u64,
}Expand description
The result of an image generation — the visual strike delivered.
Fields§
§image_data: StringBase64-encoded image data.
format: ImageFormatFormat of the generated image.
revised_prompt: Option<String>The prompt as revised/interpreted by the model.
model_used: StringWhich model produced this image.
generation_ms: u64Time taken to generate in milliseconds.
Trait Implementations§
Source§impl Clone for ImageGenResult
impl Clone for ImageGenResult
Source§fn clone(&self) -> ImageGenResult
fn clone(&self) -> ImageGenResult
Returns a duplicate of the value. Read more
1.0.0 · 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 ImageGenResult
impl Debug for ImageGenResult
Source§impl<'de> Deserialize<'de> for ImageGenResult
impl<'de> Deserialize<'de> for ImageGenResult
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
Auto Trait Implementations§
impl Freeze for ImageGenResult
impl RefUnwindSafe for ImageGenResult
impl Send for ImageGenResult
impl Sync for ImageGenResult
impl Unpin for ImageGenResult
impl UnsafeUnpin for ImageGenResult
impl UnwindSafe for ImageGenResult
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