Enum rust_tdlib::types::InputChatPhoto[][src]

pub enum InputChatPhoto {
    Animation(InputChatPhotoAnimation),
    Previous(InputChatPhotoPrevious),
    Static(InputChatPhotoStatic),
    // some variants omitted
}

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

A previously used profile photo of the current user

A static photo in JPEG format

Implementations

impl InputChatPhoto[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

Trait Implementations

impl AsRef<InputChatPhoto> for InputChatPhoto[src]

impl Clone for InputChatPhoto[src]

impl Debug for InputChatPhoto[src]

impl Default for InputChatPhoto[src]

impl<'de> Deserialize<'de> for InputChatPhoto[src]

impl Serialize for InputChatPhoto[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,