Struct async_openai::types::CreateImageRequest  
source · pub struct CreateImageRequest {
    pub prompt: String,
    pub n: Option<u8>,
    pub size: Option<ImageSize>,
    pub response_format: Option<ResponseFormat>,
    pub user: Option<String>,
}Fields§
§prompt: StringA text description of the desired image(s). The maximum length is 1000 characters.
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 CreateImageRequest
 
impl Clone for CreateImageRequest
source§fn clone(&self) -> CreateImageRequest
 
fn clone(&self) -> CreateImageRequest
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 CreateImageRequest
 
impl Debug for CreateImageRequest
source§impl Default for CreateImageRequest
 
impl Default for CreateImageRequest
source§fn default() -> CreateImageRequest
 
fn default() -> CreateImageRequest
Returns the “default value” for a type. Read more