pub struct ImageEditCompletedEvent {
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 editing has completed and the final image is available.
Fields§
§b64_json: String
Base64-encoded final edited 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 edited image.
quality: Quality
The quality setting for the edited image.
background: Background
The background setting for the edited image.
output_format: OutputFormat
The output format for the edited image.
usage: ImagesUsage
Implementations§
Source§impl ImageEditCompletedEvent
impl ImageEditCompletedEvent
Sourcepub fn builder() -> ImageEditCompletedEventBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> ImageEditCompletedEventBuilder<((), (), (), (), (), (), ())>
Create a builder for building ImageEditCompletedEvent
.
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 ImageEditCompletedEvent
.
Trait Implementations§
Source§impl Clone for ImageEditCompletedEvent
impl Clone for ImageEditCompletedEvent
Source§fn clone(&self) -> ImageEditCompletedEvent
fn clone(&self) -> ImageEditCompletedEvent
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 ImageEditCompletedEvent
impl Debug for ImageEditCompletedEvent
Source§impl<'de> Deserialize<'de> for ImageEditCompletedEvent
impl<'de> Deserialize<'de> for ImageEditCompletedEvent
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 ImageEditCompletedEvent
impl PartialEq for ImageEditCompletedEvent
Source§impl Serialize for ImageEditCompletedEvent
impl Serialize for ImageEditCompletedEvent
impl StructuralPartialEq for ImageEditCompletedEvent
Auto Trait Implementations§
impl Freeze for ImageEditCompletedEvent
impl RefUnwindSafe for ImageEditCompletedEvent
impl Send for ImageEditCompletedEvent
impl Sync for ImageEditCompletedEvent
impl Unpin for ImageEditCompletedEvent
impl UnwindSafe for ImageEditCompletedEvent
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