pub struct GenerateOptions {
pub model: Option<ImageModel>,
pub n: Option<u32>,
pub quality: Option<ImageQuality>,
pub response_format: Option<ResponseFormat>,
pub size: Option<ImageSize>,
pub style: Option<ImageStyle>,
pub user: Option<String>,
}Expand description
Options for image generation.
Fields§
§model: Option<ImageModel>The model to use; when None the API picks its own default
n: Option<u32>Number of images to generate (1-10, DALL-E 3 only supports 1)
quality: Option<ImageQuality>Image quality
DALL-E 3 takes standard/hd; the GPT Image models take
low/medium/high/auto and reject the DALL-E values.
response_format: Option<ResponseFormat>Response format (URL or base64)
DALL-E only. The GPT Image models reject this parameter with
unknown_parameter and always return base64 data.
size: Option<ImageSize>Image size
style: Option<ImageStyle>Image style
DALL-E 3 only. The GPT Image models reject this parameter with
unknown_parameter.
user: Option<String>User identifier for abuse monitoring
Trait Implementations§
Source§impl Clone for GenerateOptions
impl Clone for GenerateOptions
Source§fn clone(&self) -> GenerateOptions
fn clone(&self) -> GenerateOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GenerateOptions
impl Debug for GenerateOptions
Source§impl Default for GenerateOptions
impl Default for GenerateOptions
Source§fn default() -> GenerateOptions
fn default() -> GenerateOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GenerateOptions
impl RefUnwindSafe for GenerateOptions
impl Send for GenerateOptions
impl Sync for GenerateOptions
impl Unpin for GenerateOptions
impl UnsafeUnpin for GenerateOptions
impl UnwindSafe for GenerateOptions
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