pub enum CreateImageEditRequestBackground {
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 CreateImageEditRequestBackground
impl Clone for CreateImageEditRequestBackground
Source§fn clone(&self) -> CreateImageEditRequestBackground
fn clone(&self) -> CreateImageEditRequestBackground
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 Default for CreateImageEditRequestBackground
impl Default for CreateImageEditRequestBackground
Source§fn default() -> CreateImageEditRequestBackground
fn default() -> CreateImageEditRequestBackground
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateImageEditRequestBackground
impl<'de> Deserialize<'de> for CreateImageEditRequestBackground
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 CreateImageEditRequestBackground
impl PartialEq for CreateImageEditRequestBackground
Source§fn eq(&self, other: &CreateImageEditRequestBackground) -> bool
fn eq(&self, other: &CreateImageEditRequestBackground) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for CreateImageEditRequestBackground
impl StructuralPartialEq for CreateImageEditRequestBackground
Auto Trait Implementations§
impl Freeze for CreateImageEditRequestBackground
impl RefUnwindSafe for CreateImageEditRequestBackground
impl Send for CreateImageEditRequestBackground
impl Sync for CreateImageEditRequestBackground
impl Unpin for CreateImageEditRequestBackground
impl UnwindSafe for CreateImageEditRequestBackground
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