pub enum InputChatPhoto {
Animation(InputChatPhotoAnimation),
Previous(InputChatPhotoPrevious),
Static(InputChatPhotoStatic),
// some variants omitted
}
Expand description
Describes a photo to be set as a user profile or chat photo
Variants§
Animation(InputChatPhotoAnimation)
An animation in MPEG4 format; must be square, at most 10 seconds long, have width between 160 and 800 and be at most 2MB in size
Previous(InputChatPhotoPrevious)
A previously used profile photo of the current user
Static(InputChatPhotoStatic)
A static photo in JPEG format
Implementations§
Trait Implementations§
Source§impl AsRef<InputChatPhoto> for InputChatPhoto
impl AsRef<InputChatPhoto> for InputChatPhoto
Source§fn as_ref(&self) -> &InputChatPhoto
fn as_ref(&self) -> &InputChatPhoto
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for InputChatPhoto
impl Clone for InputChatPhoto
Source§fn clone(&self) -> InputChatPhoto
fn clone(&self) -> InputChatPhoto
Returns a copy 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 Default for InputChatPhoto
impl Default for InputChatPhoto
Source§fn default() -> InputChatPhoto
fn default() -> InputChatPhoto
Returns the “default value” for a type. Read more
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
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