pub struct ImageVariationRequest {
pub image: String,
pub n: Option<i32>,
pub model: Option<String>,
pub size: Option<String>,
pub response_format: Option<String>,
pub user: Option<String>,
}
Expand description
Represents a request to generate variations of an image.
Fields§
§image: String
Image to generate variations for.
n: Option<i32>
Optional number of variations to generate.
model: Option<String>
Optional model to be used for generating variations.
size: Option<String>
Optional size of the generated variations.
response_format: Option<String>
Optional format of the response.
user: Option<String>
Optional user identifier.
Implementations§
Source§impl ImageVariationRequest
impl ImageVariationRequest
Sourcepub fn response_format(self, response_format: String) -> Self
pub fn response_format(self, response_format: String) -> Self
Sets the value of the specified field.
Trait Implementations§
Source§impl Clone for ImageVariationRequest
impl Clone for ImageVariationRequest
Source§fn clone(&self) -> ImageVariationRequest
fn clone(&self) -> ImageVariationRequest
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 ImageVariationRequest
impl Debug for ImageVariationRequest
Auto Trait Implementations§
impl Freeze for ImageVariationRequest
impl RefUnwindSafe for ImageVariationRequest
impl Send for ImageVariationRequest
impl Sync for ImageVariationRequest
impl Unpin for ImageVariationRequest
impl UnwindSafe for ImageVariationRequest
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