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: String
A 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
source§impl PartialEq<CreateImageRequest> for CreateImageRequest
impl PartialEq<CreateImageRequest> for CreateImageRequest
source§fn eq(&self, other: &CreateImageRequest) -> bool
fn eq(&self, other: &CreateImageRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CreateImageRequest
impl Serialize for CreateImageRequest
impl StructuralPartialEq for CreateImageRequest
Auto Trait Implementations§
impl RefUnwindSafe for CreateImageRequest
impl Send for CreateImageRequest
impl Sync for CreateImageRequest
impl Unpin for CreateImageRequest
impl UnwindSafe for CreateImageRequest
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