pub enum InputProfilePhoto {
Static(InputProfilePhotoStatic),
Animated(InputProfilePhotoAnimated),
}Expand description
A profile photo to set via setMyProfilePhoto or setBusinessAccountProfilePhoto.
Serialise with serde_json::to_string(&photo) to pass to the relevant method.
Variants§
Static(InputProfilePhotoStatic)
A static JPEG profile photo.
Animated(InputProfilePhotoAnimated)
An animated MPEG4 profile photo.
Trait Implementations§
Source§impl Clone for InputProfilePhoto
impl Clone for InputProfilePhoto
Source§fn clone(&self) -> InputProfilePhoto
fn clone(&self) -> InputProfilePhoto
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InputProfilePhoto
impl Debug for InputProfilePhoto
Source§impl<'de> Deserialize<'de> for InputProfilePhoto
impl<'de> Deserialize<'de> for InputProfilePhoto
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 InputProfilePhoto
impl RefUnwindSafe for InputProfilePhoto
impl Send for InputProfilePhoto
impl Sync for InputProfilePhoto
impl Unpin for InputProfilePhoto
impl UnsafeUnpin for InputProfilePhoto
impl UnwindSafe for InputProfilePhoto
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