pub struct ImageGenPartialImageEvent {
pub b64_json: String,
pub background: ImageGenPartialImageEventBackground,
pub created_at: i64,
pub output_format: ImageGenPartialImageEventOutputFormat,
pub partial_image_index: i64,
pub quality: ImageGenPartialImageEventQuality,
pub size: ImageGenPartialImageEventSize,
pub type_: String,
}Expand description
Emitted when a partial image is available during image generation streaming.
Fields§
§b64_json: StringBase64-encoded partial image data, suitable for rendering as an image.
background: ImageGenPartialImageEventBackgroundThe background setting for the requested image.
created_at: i64The Unix timestamp when the event was created.
output_format: ImageGenPartialImageEventOutputFormatThe output format for the requested image.
partial_image_index: i640-based index for the partial image (streaming).
quality: ImageGenPartialImageEventQualityThe quality setting for the requested image.
size: ImageGenPartialImageEventSizeThe size of the requested image.
type_: StringThe type of the event. Always image_generation.partial_image.
Trait Implementations§
Source§impl Clone for ImageGenPartialImageEvent
impl Clone for ImageGenPartialImageEvent
Source§fn clone(&self) -> ImageGenPartialImageEvent
fn clone(&self) -> ImageGenPartialImageEvent
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 ImageGenPartialImageEvent
impl Debug for ImageGenPartialImageEvent
Source§impl<'de> Deserialize<'de> for ImageGenPartialImageEvent
impl<'de> Deserialize<'de> for ImageGenPartialImageEvent
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 ImageGenPartialImageEvent
impl RefUnwindSafe for ImageGenPartialImageEvent
impl Send for ImageGenPartialImageEvent
impl Sync for ImageGenPartialImageEvent
impl Unpin for ImageGenPartialImageEvent
impl UnsafeUnpin for ImageGenPartialImageEvent
impl UnwindSafe for ImageGenPartialImageEvent
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