pub struct ImageGenCompletedEvent {
pub b64_json: String,
pub created_at: i64,
pub size: Size,
pub quality: Quality,
pub background: Background,
pub output_format: OutputFormat,
pub usage: ImagesUsage,
}
Expand description
Emitted when image generation has completed and the final image is available.
Fields§
§b64_json: String
Base64-encoded 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 generated image.
quality: Quality
The quality setting for the generated image.
background: Background
The background setting for the generated image.
output_format: OutputFormat
The output format for the generated image.
usage: ImagesUsage
Implementations§
Source§impl ImageGenCompletedEvent
impl ImageGenCompletedEvent
Sourcepub fn builder() -> ImageGenCompletedEventBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> ImageGenCompletedEventBuilder<((), (), (), (), (), (), ())>
Create a builder for building ImageGenCompletedEvent
.
On the builder, call .b64_json(...)
, .created_at(...)
, .size(...)
, .quality(...)
, .background(...)
, .output_format(...)
, .usage(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ImageGenCompletedEvent
.
Trait Implementations§
Source§impl Clone for ImageGenCompletedEvent
impl Clone for ImageGenCompletedEvent
Source§fn clone(&self) -> ImageGenCompletedEvent
fn clone(&self) -> ImageGenCompletedEvent
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 ImageGenCompletedEvent
impl Debug for ImageGenCompletedEvent
Source§impl<'de> Deserialize<'de> for ImageGenCompletedEvent
impl<'de> Deserialize<'de> for ImageGenCompletedEvent
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 ImageGenCompletedEvent
impl PartialEq for ImageGenCompletedEvent
Source§impl Serialize for ImageGenCompletedEvent
impl Serialize for ImageGenCompletedEvent
impl StructuralPartialEq for ImageGenCompletedEvent
Auto Trait Implementations§
impl Freeze for ImageGenCompletedEvent
impl RefUnwindSafe for ImageGenCompletedEvent
impl Send for ImageGenCompletedEvent
impl Sync for ImageGenCompletedEvent
impl Unpin for ImageGenCompletedEvent
impl UnwindSafe for ImageGenCompletedEvent
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