Struct openai_api_rs::v1::image::ImageGenerationRequest
source · 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>,
}
Fields§
§prompt: String
§model: Option<String>
§n: Option<i32>
§size: Option<String>
§response_format: Option<String>
§user: Option<String>
Implementations§
Trait Implementations§
source§impl Clone for ImageGenerationRequest
impl Clone for ImageGenerationRequest
source§fn clone(&self) -> ImageGenerationRequest
fn clone(&self) -> ImageGenerationRequest
Returns a copy 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 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