Struct openai_flows::ImageRequest
source · pub struct ImageRequest {
pub prompt: String,
pub n: u8,
pub size: ImageSize,
pub retry_times: u8,
}
Expand description
Request struct for the image creation.
Use retry_times to set the number of retries when requesting OpenAI’s api encounters a problem. The max number is 10.
For more detail about parameters, please refer to OpenAI docs
Fields§
§prompt: String
§n: u8
§size: ImageSize
§retry_times: u8
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