Enum rust_tdlib::types::InputChatPhoto
source · 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