pub enum ImageSize {
Size1024x1024,
Size768x1344,
Size864x1152,
Size1344x768,
Size1152x864,
Size1440x720,
Size720x1440,
Custom {
width: u32,
height: u32,
},
}Expand description
Image size options
Recommended sizes:
- 1024x1024 (default)
- 768x1344
- 864x1152
- 1344x768
- 1152x864
- 1440x720
- 720x1440
Custom sizes must satisfy:
- Width and height between 512-2048px
- Both dimensions divisible by 16
- Total pixels <= 2^21 (2,097,152)
Variants§
Size1024x1024
1024x1024 pixels
Size768x1344
768x1344 pixels
Size864x1152
864x1152 pixels
Size1344x768
1344x768 pixels
Size1152x864
1152x864 pixels
Size1440x720
1440x720 pixels
Size720x1440
720x1440 pixels
Custom
Custom dimensions in width x height format
Implementations§
Trait Implementations§
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