pub struct ImageEditCompletedEvent {
pub b64_json: String,
pub background: ImageEditCompletedEventBackground,
pub created_at: i64,
pub output_format: ImageEditCompletedEventOutputFormat,
pub quality: ImageEditCompletedEventQuality,
pub size: ImageEditCompletedEventSize,
pub type_: String,
pub usage: Usage,
}Expand description
Emitted when image editing has completed and the final image is available.
Fields§
§b64_json: StringBase64-encoded final edited image data, suitable for rendering as an image.
background: ImageEditCompletedEventBackgroundThe background setting for the edited image.
created_at: i64The Unix timestamp when the event was created.
output_format: ImageEditCompletedEventOutputFormatThe output format for the edited image.
quality: ImageEditCompletedEventQualityThe quality setting for the edited image.
size: ImageEditCompletedEventSizeThe size of the edited image.
type_: StringThe type of the event. Always image_edit.completed.
usage: UsageFor the GPT image models only, the token usage information for the image
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 (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 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
Auto Trait Implementations§
impl Freeze for ImageEditCompletedEvent
impl RefUnwindSafe for ImageEditCompletedEvent
impl Send for ImageEditCompletedEvent
impl Sync for ImageEditCompletedEvent
impl Unpin for ImageEditCompletedEvent
impl UnsafeUnpin 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