pub struct CreateImageRequest {
pub prompt: String,
pub model: Option<CreateImageRequest_Model>,
pub n: Option<i64>,
pub quality: Option<String>,
pub response_format: Option<String>,
pub output_format: Option<String>,
pub output_compression: Option<i64>,
pub size: Option<String>,
pub moderation: Option<String>,
pub background: Option<String>,
pub style: Option<String>,
pub user: Option<String>,
}
Fields§
§prompt: String
A text description of the desired image(s).
model: Option<CreateImageRequest_Model>
§n: Option<i64>
The number of images to generate.
quality: Option<String>
The quality of the image that will be generated.
response_format: Option<String>
The format in which generated images with dall-e-2
and dall-e-3
are
returned.
output_format: Option<String>
The format in which the generated images are returned.
output_compression: Option<i64>
The compression level (0-100%) for the generated images.
size: Option<String>
The size of the generated images.
moderation: Option<String>
Control the content-moderation level for images generated by
gpt-image-1
.
background: Option<String>
Allows to set transparency for the background of the generated image(s).
style: Option<String>
The style of the generated images.
user: Option<String>
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
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
Auto Trait Implementations§
impl Freeze for CreateImageRequest
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