#[non_exhaustive]pub enum ImageSize {
Size256x256,
Size512x512,
Size1024x1024,
Size1792x1024,
Size1024x1792,
Size1024x1536,
Size1536x1024,
Auto,
}Expand description
Image sizes for generation.
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.
Size256x256
256x256 pixels (DALL-E 2 only)
Size512x512
512x512 pixels (DALL-E 2 only)
Size1024x1024
1024x1024 pixels (all models)
Size1792x1024
1792x1024 pixels - landscape (DALL-E 3 only)
Size1024x1792
1024x1792 pixels - portrait (DALL-E 3 only)
Size1024x1536
1024x1536 pixels - portrait (GPT Image models)
Size1536x1024
1536x1024 pixels - landscape (GPT Image models)
Auto
Let the model choose the size (GPT Image models)
Implementations§
Trait Implementations§
impl Copy for ImageSize
Source§impl<'de> Deserialize<'de> for ImageSize
impl<'de> Deserialize<'de> for ImageSize
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 ImageSize
impl StructuralPartialEq for ImageSize
Auto Trait Implementations§
impl Freeze for ImageSize
impl RefUnwindSafe for ImageSize
impl Send for ImageSize
impl Sync for ImageSize
impl Unpin for ImageSize
impl UnsafeUnpin for ImageSize
impl UnwindSafe for ImageSize
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.