pub enum ImageSize {
Size256x256,
Size512x512,
Size1024x1024,
Size1792x1024,
Size1024x1792,
}Expand description
Image size options
Variants§
Size256x256
256x256 pixels (DALL-E 2 only)
Size512x512
512x512 pixels (DALL-E 2 only)
Size1024x1024
1024x1024 pixels (DALL-E 2 and 3)
Size1792x1024
1792x1024 pixels (DALL-E 3 only)
Size1024x1792
1024x1792 pixels (DALL-E 3 only)
Trait Implementations§
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 Copy 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 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