#[repr(i16)]pub enum ImageSize {
Canvas = 0,
Sticker = 1,
UserProfile = 2,
}
Expand description
Represents different sizes of images
Variants§
Canvas = 0
The image is a canvas (background) image
Sticker = 1
The image is a sticker.
UserProfile = 2
The image is a user profile picture
Implementations§
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