pub struct ImageGenerationRequest {
pub prompt: String,
pub model: Option<String>,
pub n: Option<u32>,
pub size: Option<String>,
pub quality: Option<String>,
pub style: Option<String>,
pub response_format: Option<String>,
pub user: Option<String>,
}Expand description
Image generation request (OpenAI-compatible)
Fields§
§prompt: StringThe text prompt describing the image to generate
model: Option<String>Optional model override
n: Option<u32>Number of images to generate (default: 1)
size: Option<String>Image size (e.g., “1024x1024”, “1792x1024”, “1024x1792”)
quality: Option<String>Quality level (“standard” or “hd”)
style: Option<String>Style (“vivid” or “natural”)
response_format: Option<String>Response format (“url” or “b64_json”)
user: Option<String>A unique identifier for the end-user
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
Source§impl<'de> Deserialize<'de> for ImageGenerationRequest
impl<'de> Deserialize<'de> for ImageGenerationRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ImageGenerationRequest
impl RefUnwindSafe for ImageGenerationRequest
impl Send for ImageGenerationRequest
impl Sync for ImageGenerationRequest
impl Unpin for ImageGenerationRequest
impl UnsafeUnpin 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