pub enum InputChatPhoto {
Empty,
InputChatUploadedPhoto(InputChatUploadedPhoto),
InputChatPhoto(InputChatPhoto),
}Expand description
Variants§
Trait Implementations§
Source§impl Clone for InputChatPhoto
impl Clone for InputChatPhoto
Source§fn clone(&self) -> InputChatPhoto
fn clone(&self) -> InputChatPhoto
Returns a duplicate 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 Deserializable for InputChatPhoto
impl Deserializable for InputChatPhoto
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<InputChatPhoto> for InputChatPhoto
impl From<InputChatPhoto> for InputChatPhoto
Source§fn from(x: InputChatPhoto) -> Self
fn from(x: InputChatPhoto) -> Self
Converts to this type from the input type.
Source§impl From<InputChatPhotoEmpty> for InputChatPhoto
impl From<InputChatPhotoEmpty> for InputChatPhoto
Source§fn from(_x: InputChatPhotoEmpty) -> Self
fn from(_x: InputChatPhotoEmpty) -> Self
Converts to this type from the input type.
Source§impl From<InputChatUploadedPhoto> for InputChatPhoto
impl From<InputChatUploadedPhoto> for InputChatPhoto
Source§fn from(x: InputChatUploadedPhoto) -> Self
fn from(x: InputChatUploadedPhoto) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InputChatPhoto
impl PartialEq for InputChatPhoto
Source§impl Serializable for InputChatPhoto
impl Serializable for InputChatPhoto
Source§impl TryFrom<InputChatPhoto> for InputChatPhoto
impl TryFrom<InputChatPhoto> for InputChatPhoto
Source§type Error = InputChatPhoto
type Error = InputChatPhoto
The type returned in the event of a conversion error.
Source§impl TryFrom<InputChatPhoto> for InputChatUploadedPhoto
impl TryFrom<InputChatPhoto> for InputChatUploadedPhoto
Source§type Error = InputChatPhoto
type Error = InputChatPhoto
The type returned in the event of a conversion error.
impl StructuralPartialEq for InputChatPhoto
Auto Trait Implementations§
impl Freeze for InputChatPhoto
impl RefUnwindSafe for InputChatPhoto
impl Send for InputChatPhoto
impl Sync for InputChatPhoto
impl Unpin for InputChatPhoto
impl UnsafeUnpin for InputChatPhoto
impl UnwindSafe for InputChatPhoto
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