pub struct ImageArguments {
pub prompt: String,
pub n: Option<u32>,
pub response_format: Option<ResponseFormat>,
pub size: Option<u32>,
pub user: Option<String>,
}
Fields§
§prompt: String
A text description of the desired image(s). The maximum length is 1000 characters.
n: Option<u32>
The number of images to generate. Must be between 1 and 10. Defaults to 1.
response_format: Option<ResponseFormat>
The format in which the generated images are returned Defaults to url
.
size: Option<u32>
The size of the generated images. Must be one of 256x256
, 512x512
, or 1024x1024
. Defaults to 1024x1024
.
user: Option<String>
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. Learn more.
Implementations§
Trait Implementations§
Source§impl Clone for ImageArguments
impl Clone for ImageArguments
Source§fn clone(&self) -> ImageArguments
fn clone(&self) -> ImageArguments
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 ImageArguments
impl Debug for ImageArguments
Auto Trait Implementations§
impl Freeze for ImageArguments
impl RefUnwindSafe for ImageArguments
impl Send for ImageArguments
impl Sync for ImageArguments
impl Unpin for ImageArguments
impl UnwindSafe for ImageArguments
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