Struct async_openai::types::CreateImageVariationRequest
source · pub struct CreateImageVariationRequest {
pub image: ImageInput,
pub n: Option<u8>,
pub size: Option<ImageSize>,
pub response_format: Option<ResponseFormat>,
pub user: Option<String>,
}
Fields§
§image: ImageInput
The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.
n: Option<u8>
The number of images to generate. Must be between 1 and 10.
size: Option<ImageSize>
The size of the generated images. Must be one of 256x256
, 512x512
, or 1024x1024
.
response_format: Option<ResponseFormat>
The format in which the generated images are returned. Must be one of url
or b64_json
.
user: Option<String>
A unique identifier representing your end-user, which will help OpenAI to monitor and detect abuse. Learn more.
Trait Implementations§
source§impl Clone for CreateImageVariationRequest
impl Clone for CreateImageVariationRequest
source§fn clone(&self) -> CreateImageVariationRequest
fn clone(&self) -> CreateImageVariationRequest
Returns a copy 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 CreateImageVariationRequest
impl Debug for CreateImageVariationRequest
source§impl Default for CreateImageVariationRequest
impl Default for CreateImageVariationRequest
source§fn default() -> CreateImageVariationRequest
fn default() -> CreateImageVariationRequest
Returns the “default value” for a type. Read more