pub struct ResponseImageGenCallPartialImageEvent {
pub item_id: String,
pub output_index: i64,
pub partial_image_b64: String,
pub partial_image_index: i64,
pub sequence_number: i64,
pub type_: String,
}Expand description
Emitted when a partial image is available during image generation streaming.
Fields§
§item_id: StringThe unique identifier of the image generation item being processed.
output_index: i64The index of the output item in the response’s output array.
partial_image_b64: StringBase64-encoded partial image data, suitable for rendering as an image.
partial_image_index: i640-based index for the partial image (backend is 1-based, but this is 0-based for
sequence_number: i64The sequence number of the image generation item being processed.
type_: StringThe type of the event. Always ‘response.image_generation_call.partial_image’.
Trait Implementations§
Source§impl Clone for ResponseImageGenCallPartialImageEvent
impl Clone for ResponseImageGenCallPartialImageEvent
Source§fn clone(&self) -> ResponseImageGenCallPartialImageEvent
fn clone(&self) -> ResponseImageGenCallPartialImageEvent
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<'de> Deserialize<'de> for ResponseImageGenCallPartialImageEvent
impl<'de> Deserialize<'de> for ResponseImageGenCallPartialImageEvent
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 ResponseImageGenCallPartialImageEvent
impl RefUnwindSafe for ResponseImageGenCallPartialImageEvent
impl Send for ResponseImageGenCallPartialImageEvent
impl Sync for ResponseImageGenCallPartialImageEvent
impl Unpin for ResponseImageGenCallPartialImageEvent
impl UnsafeUnpin for ResponseImageGenCallPartialImageEvent
impl UnwindSafe for ResponseImageGenCallPartialImageEvent
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