pub struct ResponseImageGenCallPartialImageEvent {
pub output_index: i64,
pub item_id: String,
pub sequence_number: i64,
pub partial_image_index: i64,
pub partial_image_b64: String,
}
Expand description
Emitted when a partial image is available during image generation streaming.
Fields§
§output_index: i64
The index of the output item in the response’s output array.
item_id: String
The unique identifier of the image generation item being processed.
sequence_number: i64
The sequence number of the image generation item being processed.
partial_image_index: i64
0-based index for the partial image (backend is 1-based, but this is 0-based for the user).
partial_image_b64: String
Base64-encoded partial image data, suitable for rendering as an image.
Implementations§
Source§impl ResponseImageGenCallPartialImageEvent
impl ResponseImageGenCallPartialImageEvent
Sourcepub fn builder() -> ResponseImageGenCallPartialImageEventBuilder<((), (), (), (), ())>
pub fn builder() -> ResponseImageGenCallPartialImageEventBuilder<((), (), (), (), ())>
Create a builder for building ResponseImageGenCallPartialImageEvent
.
On the builder, call .output_index(...)
, .item_id(...)
, .sequence_number(...)
, .partial_image_index(...)
, .partial_image_b64(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ResponseImageGenCallPartialImageEvent
.
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 · Source§const fn clone_from(&mut self, source: &Self)
const 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
Source§impl PartialEq for ResponseImageGenCallPartialImageEvent
impl PartialEq for ResponseImageGenCallPartialImageEvent
Source§fn eq(&self, other: &ResponseImageGenCallPartialImageEvent) -> bool
fn eq(&self, other: &ResponseImageGenCallPartialImageEvent) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ResponseImageGenCallPartialImageEvent
Auto Trait Implementations§
impl Freeze for ResponseImageGenCallPartialImageEvent
impl RefUnwindSafe for ResponseImageGenCallPartialImageEvent
impl Send for ResponseImageGenCallPartialImageEvent
impl Sync for ResponseImageGenCallPartialImageEvent
impl Unpin 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