Enum rtdlib::types::InputChatPhoto [−][src]
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
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
Tuple Fields of Animation
A previously used profile photo of the current user
Tuple Fields of Previous
A static photo in JPEG format
Tuple Fields of Static
Implementations
Trait Implementations
Performs the conversion.
fn deserialize<D>(deserializer: D) -> Result<InputChatPhoto, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<InputChatPhoto, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for InputChatPhoto
impl Send for InputChatPhoto
impl Sync for InputChatPhoto
impl Unpin for InputChatPhoto
impl UnwindSafe for InputChatPhoto
Blanket Implementations
Mutably borrows from an owned value. Read more