pub struct ImageCreateVariationParams {
pub image: Value,
pub model: Option<String>,
pub n: Option<i64>,
pub response_format: Option<ImageCreateVariationParamsResponseFormat>,
pub size: Option<ImageCreateVariationParamsSize>,
pub user: Option<String>,
}Fields§
§image: ValueThe image to use as the basis for the variation(s).
model: Option<String>The model to use for image generation.
n: Option<i64>The number of images to generate. Must be between 1 and 10.
response_format: Option<ImageCreateVariationParamsResponseFormat>The format in which the generated images are returned.
size: Option<ImageCreateVariationParamsSize>The size of the generated images.
user: Option<String>A unique identifier representing your end-user, which can help OpenAI to monitor
Trait Implementations§
Source§impl Clone for ImageCreateVariationParams
impl Clone for ImageCreateVariationParams
Source§fn clone(&self) -> ImageCreateVariationParams
fn clone(&self) -> ImageCreateVariationParams
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 ImageCreateVariationParams
impl Debug for ImageCreateVariationParams
Source§impl<'de> Deserialize<'de> for ImageCreateVariationParams
impl<'de> Deserialize<'de> for ImageCreateVariationParams
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 ImageCreateVariationParams
impl RefUnwindSafe for ImageCreateVariationParams
impl Send for ImageCreateVariationParams
impl Sync for ImageCreateVariationParams
impl Unpin for ImageCreateVariationParams
impl UnsafeUnpin for ImageCreateVariationParams
impl UnwindSafe for ImageCreateVariationParams
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