pub struct ImageVariationParameters {
pub image: String,
pub num_images: Option<i32>,
pub image_size: Option<String>,
pub response_format: Option<String>,
pub user: Option<String>,
}
Fields§
§image: String
The image to edit. Must be a valid PNG file, less than 4MB, and square. If mask is not provided, image must have transparency, which will be used as the mask.
num_images: Option<i32>
The number of images to generate. Must be between 1 and 10.
image_size: Option<String>
The size of the generated images. Must be one of 256x256
, 512x512
, or `1024x1024.
response_format: Option<String>
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 can help OpenAI to monitor and detect abuse. Learn more.
Trait Implementations§
Source§impl Debug for ImageVariationParameters
impl Debug for ImageVariationParameters
Source§impl<'de> Deserialize<'de> for ImageVariationParameters
impl<'de> Deserialize<'de> for ImageVariationParameters
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 ImageVariationParameters
impl RefUnwindSafe for ImageVariationParameters
impl Send for ImageVariationParameters
impl Sync for ImageVariationParameters
impl Unpin for ImageVariationParameters
impl UnwindSafe for ImageVariationParameters
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