Struct openai_flows::image::ImageRequest
source · pub struct ImageRequest {
pub prompt: String,
pub n: u8,
pub size: ImageSize,
}
Expand description
Request struct for the image creation.
For more detail about parameters, please refer to OpenAI docs
Fields§
§prompt: String
A text description of the desired image(s). The maximum length is 1000 characters.
n: u8
The number of images to generate. Must be between 1 and 10.
size: ImageSize
The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024.
Trait Implementations§
source§impl Debug for ImageRequest
impl Debug for ImageRequest
Auto Trait Implementations§
impl RefUnwindSafe for ImageRequest
impl Send for ImageRequest
impl Sync for ImageRequest
impl Unpin for ImageRequest
impl UnwindSafe for ImageRequest
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