Struct openai_api_rust::apis::images::ImagesBody
source · pub struct ImagesBody {
pub prompt: String,
pub n: Option<i32>,
pub size: Option<String>,
pub response_format: Option<String>,
pub user: Option<String>,
}
Fields§
§prompt: String
A text description of the desired image(s). The maximum length is 1000 characters.
n: Option<i32>
The number of images to generate. Must be between 1 and 10. Defaults to 1
size: Option<String>
The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024. Defaults to 1024x1024
response_format: Option<String>
The format in which the generated images are returned. Must be one of url or b64_json. Defaults to url
user: Option<String>
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
Trait Implementations§
source§impl Debug for ImagesBody
impl Debug for ImagesBody
source§impl<'de> Deserialize<'de> for ImagesBody
impl<'de> Deserialize<'de> for ImagesBody
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