pub struct CreateImageVariationRequest {
pub image: String,
pub n: Option<u16>,
pub size: Option<String>,
pub response_format: Option<ImageFormat>,
pub user: Option<String>,
}
Fields§
§image: String
The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.
n: Option<u16>
The number of images to generate. Must be between 1 and 10.
size: Option<String>
The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024.
response_format: Option<ImageFormat>
The format in which the generated images are returned. Must be one of ImageFormat::URL or ImageFormat::B64JSON.
user: Option<String>
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
Trait Implementations§
Source§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
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