pub struct ImagesResponse {
pub created: u32,
pub data: Vec<Arc<Image>>,
pub background: Option<ImageResponseBackground>,
pub output_format: Option<ImageOutputFormat>,
pub size: Option<ImageSize>,
pub quality: Option<ImageQuality>,
pub usage: Option<ImageGenUsage>,
}Fields§
§created: u32The Unix timestamp (in seconds) of when the image was created.
data: Vec<Arc<Image>>The list of generated images.
background: Option<ImageResponseBackground>The background parameter used for the image generation. Either transparent or opaque.
output_format: Option<ImageOutputFormat>The output format of the image generation. Either png, webp, or jpeg.
size: Option<ImageSize>The size of the generated image. Either 1024x1024, 1536x1024, 1024x1536.
quality: Option<ImageQuality>The quality of the image generated. Either low, medium, or high.
usage: Option<ImageGenUsage>For the GPT image models 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<ImagesResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ImagesResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ImagesResponse
impl PartialEq for ImagesResponse
Source§impl Serialize for ImagesResponse
impl Serialize for ImagesResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ImagesResponse
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