pub enum InputChatPhoto {
Previous(InputChatPhotoPrevious),
Static(InputChatPhotoStatic),
Animation(InputChatPhotoAnimation),
Sticker(InputChatPhotoSticker),
}Variants§
Previous(InputChatPhotoPrevious)
A previously used profile photo of the current user
Static(InputChatPhotoStatic)
A static photo in JPEG format
Animation(InputChatPhotoAnimation)
An animation in MPEG4 format; must be square, at most 10 seconds long, have width between 160 and 1280 and be at most 2MB in size
Sticker(InputChatPhotoSticker)
A sticker on a custom background
Trait Implementations§
Source§impl Clone for InputChatPhoto
impl Clone for InputChatPhoto
Source§fn clone(&self) -> InputChatPhoto
fn clone(&self) -> InputChatPhoto
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputChatPhoto
impl Debug for InputChatPhoto
Source§impl<'de> Deserialize<'de> for InputChatPhoto
impl<'de> Deserialize<'de> for InputChatPhoto
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
Source§impl PartialEq for InputChatPhoto
impl PartialEq for InputChatPhoto
Source§impl Serialize for InputChatPhoto
impl Serialize for InputChatPhoto
impl StructuralPartialEq for InputChatPhoto
Auto Trait Implementations§
impl Freeze for InputChatPhoto
impl RefUnwindSafe for InputChatPhoto
impl Send for InputChatPhoto
impl Sync for InputChatPhoto
impl Unpin for InputChatPhoto
impl UnwindSafe for InputChatPhoto
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