pub struct ImageEditRequest {
pub image: String,
pub mask: Option<String>,
pub prompt: String,
pub model: Option<String>,
pub n: Option<i32>,
pub size: Option<String>,
pub response_format: Option<String>,
pub user: Option<String>,
}
Expand description
Represents a request to edit an existing image.
Fields§
§image: String
Image to be edited.
mask: Option<String>
Optional mask to be applied to the image.
prompt: String
Prompt for editing the image.
model: Option<String>
Optional model to be used for image editing.
n: Option<i32>
Optional number of images to generate.
size: Option<String>
Optional size of the edited image.
response_format: Option<String>
Optional format of the response.
user: Option<String>
Optional user identifier.
Implementations§
Source§impl ImageEditRequest
impl ImageEditRequest
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 ImageEditRequest
impl Clone for ImageEditRequest
Source§fn clone(&self) -> ImageEditRequest
fn clone(&self) -> ImageEditRequest
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 ImageEditRequest
impl Debug for ImageEditRequest
Auto Trait Implementations§
impl Freeze for ImageEditRequest
impl RefUnwindSafe for ImageEditRequest
impl Send for ImageEditRequest
impl Sync for ImageEditRequest
impl Unpin for ImageEditRequest
impl UnwindSafe for ImageEditRequest
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