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
sourceimpl AsRef<InputChatPhoto> for InputChatPhoto
impl AsRef<InputChatPhoto> for InputChatPhoto
sourcefn as_ref(&self) -> &InputChatPhoto
fn as_ref(&self) -> &InputChatPhoto
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for InputChatPhoto
impl Clone for InputChatPhoto
sourcefn clone(&self) -> InputChatPhoto
fn clone(&self) -> InputChatPhoto
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for InputChatPhoto
impl Debug for InputChatPhoto
sourceimpl Default for InputChatPhoto
impl Default for InputChatPhoto
sourceimpl<'de> Deserialize<'de> for InputChatPhoto
impl<'de> Deserialize<'de> for InputChatPhoto
sourcefn 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
sourceimpl Serialize for InputChatPhoto
impl Serialize for InputChatPhoto
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more