pub struct ImageEditPartialImageEvent {
pub b64_json: String,
pub created_at: i64,
pub size: Size,
pub quality: Quality,
pub background: Background,
pub output_format: OutputFormat,
pub partial_image_index: i64,
}
Expand description
Emitted when a partial image is available during image editing streaming.
Fields§
§b64_json: String
Base64-encoded partial image data, suitable for rendering as an image.
created_at: i64
The Unix timestamp when the event was created.
size: Size
The size of the requested edited image.
quality: Quality
The quality setting for the requested edited image.
background: Background
The background setting for the requested edited image.
output_format: OutputFormat
The output format for the requested edited image.
partial_image_index: i64
0-based index for the partial image (streaming).
Implementations§
Source§impl ImageEditPartialImageEvent
impl ImageEditPartialImageEvent
Sourcepub fn builder() -> ImageEditPartialImageEventBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> ImageEditPartialImageEventBuilder<((), (), (), (), (), (), ())>
Create a builder for building ImageEditPartialImageEvent
.
On the builder, call .b64_json(...)
, .created_at(...)
, .size(...)
, .quality(...)
, .background(...)
, .output_format(...)
, .partial_image_index(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ImageEditPartialImageEvent
.
Trait Implementations§
Source§impl Clone for ImageEditPartialImageEvent
impl Clone for ImageEditPartialImageEvent
Source§fn clone(&self) -> ImageEditPartialImageEvent
fn clone(&self) -> ImageEditPartialImageEvent
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 ImageEditPartialImageEvent
impl Debug for ImageEditPartialImageEvent
Source§impl<'de> Deserialize<'de> for ImageEditPartialImageEvent
impl<'de> Deserialize<'de> for ImageEditPartialImageEvent
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
impl StructuralPartialEq for ImageEditPartialImageEvent
Auto Trait Implementations§
impl Freeze for ImageEditPartialImageEvent
impl RefUnwindSafe for ImageEditPartialImageEvent
impl Send for ImageEditPartialImageEvent
impl Sync for ImageEditPartialImageEvent
impl Unpin for ImageEditPartialImageEvent
impl UnwindSafe for ImageEditPartialImageEvent
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