pub struct CreateImageVariationRequest {
pub image: ImageInput,
pub model: Option<ImageModel>,
pub n: Option<u8>,
pub size: Option<DallE2ImageSize>,
pub response_format: Option<ImageResponseFormat>,
pub user: Option<String>,
}
Fields§
§image: ImageInput
The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.
model: Option<ImageModel>
The model to use for image generation. Only dall-e-2
is supported at this time.
n: Option<u8>
The number of images to generate. Must be between 1 and 10.
size: Option<DallE2ImageSize>
The size of the generated images. Must be one of 256x256
, 512x512
, or 1024x1024
.
response_format: Option<ImageResponseFormat>
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 AsyncTryFrom<CreateImageVariationRequest> for Form
impl AsyncTryFrom<CreateImageVariationRequest> for Form
Source§type Error = OpenAIError
type Error = OpenAIError
The type returned in the event of a conversion error.
Source§impl Clone for CreateImageVariationRequest
impl Clone for CreateImageVariationRequest
Source§fn clone(&self) -> CreateImageVariationRequest
fn clone(&self) -> CreateImageVariationRequest
Returns a duplicate 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 CreateImageVariationRequest
impl Debug for CreateImageVariationRequest
Source§impl Default for CreateImageVariationRequest
impl Default for CreateImageVariationRequest
Source§fn default() -> CreateImageVariationRequest
fn default() -> CreateImageVariationRequest
Returns the “default value” for a type. Read more
impl StructuralPartialEq for CreateImageVariationRequest
Auto Trait Implementations§
impl !Freeze for CreateImageVariationRequest
impl RefUnwindSafe for CreateImageVariationRequest
impl Send for CreateImageVariationRequest
impl Sync for CreateImageVariationRequest
impl Unpin for CreateImageVariationRequest
impl UnwindSafe for CreateImageVariationRequest
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