Struct openai_api_rs::v1::image::ImageGenerationRequest
source · pub struct ImageGenerationRequest {
pub prompt: String,
pub n: Option<i32>,
pub size: Option<String>,
pub response_format: Option<String>,
pub user: Option<String>,
}
Fields§
§prompt: String
§n: Option<i32>
§size: Option<String>
§response_format: Option<String>
§user: Option<String>
Implementations§
source§impl ImageGenerationRequest
impl ImageGenerationRequest
pub fn response_format(self, response_format: String) -> Self
Trait Implementations§
source§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