pub struct ImagesResponse {
pub created: u64,
pub data: Option<Vec<Image>>,
pub background: Option<String>,
pub output_format: Option<String>,
pub quality: Option<String>,
pub size: Option<String>,
pub usage: Option<Usage>,
}Expand description
The response from the image generation endpoint.
Fields§
§created: u64The Unix timestamp (in seconds) of when the image was created.
data: Option<Vec<Image>>The list of generated images.
background: Option<String>The background parameter used for the image generation. Either
transparent or opaque. Echoed back for the GPT image models.
output_format: Option<String>The output format of the image generation. Either png, webp, or
jpeg. Echoed back for the GPT image models.
quality: Option<String>The quality of the image generated. Either low, medium, or
high. Echoed back for the GPT image models.
size: Option<String>The size of the image generated. Echoed back for the GPT image models.
usage: Option<Usage>For gpt-image-1 only, the token usage information for the image
generation.
Trait Implementations§
Source§impl Clone for ImagesResponse
impl Clone for ImagesResponse
Source§fn clone(&self) -> ImagesResponse
fn clone(&self) -> ImagesResponse
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 ImagesResponse
impl Debug for ImagesResponse
Source§impl<'de> Deserialize<'de> for ImagesResponse
impl<'de> Deserialize<'de> for ImagesResponse
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 ImagesResponse
impl RefUnwindSafe for ImagesResponse
impl Send for ImagesResponse
impl Sync for ImagesResponse
impl Unpin for ImagesResponse
impl UnsafeUnpin for ImagesResponse
impl UnwindSafe for ImagesResponse
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