pub struct ImageGenerationRequest {
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 generate an image.
Fields§
§prompt: String
Prompt for generating the image.
model: Option<String>
Optional model to be used for image generation.
n: Option<i32>
Optional number of images to generate.
size: Option<String>
Optional size of the generated image.
response_format: Option<String>
Optional format of the response.
user: Option<String>
Optional user identifier.
Implementations§
Source§impl ImageGenerationRequest
impl ImageGenerationRequest
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 ImageGenerationRequest
impl Clone for ImageGenerationRequest
Source§fn clone(&self) -> ImageGenerationRequest
fn clone(&self) -> ImageGenerationRequest
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 ImageGenerationRequest
impl Debug for ImageGenerationRequest
Auto Trait Implementations§
impl Freeze for ImageGenerationRequest
impl RefUnwindSafe for ImageGenerationRequest
impl Send for ImageGenerationRequest
impl Sync for ImageGenerationRequest
impl Unpin for ImageGenerationRequest
impl UnwindSafe for ImageGenerationRequest
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