#[non_exhaustive]pub enum ImageQuality {
Standard,
Hd,
Low,
Medium,
High,
Auto,
}Expand description
Image quality options.
Standard and Hd apply to DALL-E 3. The GPT Image models
(gpt-image-1, gpt-image-1-mini, gpt-image-2) use
Low/Medium/High/Auto instead.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Standard
Standard quality (DALL-E 3)
Hd
High definition quality (DALL-E 3)
Low
Low quality - cheapest and fastest (GPT Image models)
Medium
Medium quality (GPT Image models)
High
High quality (GPT Image models)
Auto
Let the model pick the quality (GPT Image models)
Implementations§
Trait Implementations§
Source§impl Clone for ImageQuality
impl Clone for ImageQuality
Source§fn clone(&self) -> ImageQuality
fn clone(&self) -> ImageQuality
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ImageQuality
Source§impl Debug for ImageQuality
impl Debug for ImageQuality
Source§impl Default for ImageQuality
impl Default for ImageQuality
Source§fn default() -> ImageQuality
fn default() -> ImageQuality
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImageQuality
impl<'de> Deserialize<'de> for ImageQuality
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
impl Eq for ImageQuality
Source§impl PartialEq for ImageQuality
impl PartialEq for ImageQuality
Source§impl Serialize for ImageQuality
impl Serialize for ImageQuality
impl StructuralPartialEq for ImageQuality
Auto Trait Implementations§
impl Freeze for ImageQuality
impl RefUnwindSafe for ImageQuality
impl Send for ImageQuality
impl Sync for ImageQuality
impl Unpin for ImageQuality
impl UnsafeUnpin for ImageQuality
impl UnwindSafe for ImageQuality
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.