pub struct CreateImageVariationRequest {
pub image: Vec<u8>,
pub model: Option<Value>,
pub n: Option<i32>,
pub response_format: Option<String>,
pub size: Option<String>,
pub user: Option<String>,
}
Fields§
§image: Vec<u8>
The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.
model: Option<Value>
The model to use for image generation. Only dall-e-2
is supported at this time.
n: Option<i32>
The number of images to generate. Must be between 1 and 10.
response_format: Option<String>
The format in which the generated images are returned. Must be one of url
or b64_json
. URLs are only valid for 60 minutes after the image has been generated.
size: Option<String>
The size of the generated images. Must be one of 256x256
, 512x512
, or 1024x1024
.
user: Option<String>
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. Learn more.
Trait Implementations§
Source§impl Debug for CreateImageVariationRequest
impl Debug for CreateImageVariationRequest
Source§impl<'de> Deserialize<'de> for CreateImageVariationRequest
impl<'de> Deserialize<'de> for CreateImageVariationRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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