pub enum CreateImageRequestBackground {
Transparent,
Opaque,
Auto,
}
Expand description
Allows to set transparency for the background of the generated image(s).
This parameter is only supported for gpt-image-1
. Must be one of
transparent
, opaque
or auto
(default value). When auto
is used, the
model will automatically determine the best background for the image.
If transparent
, the output format needs to support transparency, so it
should be set to either png
(default value) or webp
.
Variants§
Trait Implementations§
Source§impl Clone for CreateImageRequestBackground
impl Clone for CreateImageRequestBackground
Source§fn clone(&self) -> CreateImageRequestBackground
fn clone(&self) -> CreateImageRequestBackground
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CreateImageRequestBackground
impl Debug for CreateImageRequestBackground
Source§impl Default for CreateImageRequestBackground
impl Default for CreateImageRequestBackground
Source§fn default() -> CreateImageRequestBackground
fn default() -> CreateImageRequestBackground
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateImageRequestBackground
impl<'de> Deserialize<'de> for CreateImageRequestBackground
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 CreateImageRequestBackground
impl PartialEq for CreateImageRequestBackground
Source§fn eq(&self, other: &CreateImageRequestBackground) -> bool
fn eq(&self, other: &CreateImageRequestBackground) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for CreateImageRequestBackground
impl StructuralPartialEq for CreateImageRequestBackground
Auto Trait Implementations§
impl Freeze for CreateImageRequestBackground
impl RefUnwindSafe for CreateImageRequestBackground
impl Send for CreateImageRequestBackground
impl Sync for CreateImageRequestBackground
impl Unpin for CreateImageRequestBackground
impl UnwindSafe for CreateImageRequestBackground
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