pub struct ImageGeneration {
pub background: Option<ImageGenerationBackground>,
pub input_image_mask: Option<InputImageMask>,
pub model: Option<String>,
pub moderation: Option<String>,
pub output_compression: Option<u8>,
pub output_format: Option<ImageGenerationOutputFormat>,
pub partial_images: Option<u8>,
pub quality: Option<ImageGenerationQuality>,
pub size: Option<ImageGenerationSize>,
}
Expand description
Image generation tool definition.
Fields§
§background: Option<ImageGenerationBackground>
Background type: transparent, opaque, or auto.
input_image_mask: Option<InputImageMask>
Optional mask for inpainting.
model: Option<String>
Model to use (default: gpt-image-1).
moderation: Option<String>
Moderation level (default: auto).
output_compression: Option<u8>
Compression level (0-100).
output_format: Option<ImageGenerationOutputFormat>
Output format: png, webp, or jpeg.
partial_images: Option<u8>
Number of partial images (0-3).
quality: Option<ImageGenerationQuality>
Quality: low, medium, high, or auto.
size: Option<ImageGenerationSize>
Size: e.g. “1024x1024” or auto.
Trait Implementations§
Source§impl Clone for ImageGeneration
impl Clone for ImageGeneration
Source§fn clone(&self) -> ImageGeneration
fn clone(&self) -> ImageGeneration
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 ImageGeneration
impl Debug for ImageGeneration
Source§impl Default for ImageGeneration
impl Default for ImageGeneration
Source§fn default() -> ImageGeneration
fn default() -> ImageGeneration
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImageGeneration
impl<'de> Deserialize<'de> for ImageGeneration
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
Source§impl PartialEq for ImageGeneration
impl PartialEq for ImageGeneration
Source§impl Serialize for ImageGeneration
impl Serialize for ImageGeneration
impl StructuralPartialEq for ImageGeneration
Auto Trait Implementations§
impl Freeze for ImageGeneration
impl RefUnwindSafe for ImageGeneration
impl Send for ImageGeneration
impl Sync for ImageGeneration
impl Unpin for ImageGeneration
impl UnwindSafe for ImageGeneration
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