pub enum InputMedia {
Animation(InputMediaAnimation),
Document(InputMediaDocument),
Audio(InputMediaAudio),
LivePhoto(InputMediaLivePhoto),
Photo(InputMediaPhoto),
Video(InputMediaVideo),
}Variants§
Animation(InputMediaAnimation)
Document(InputMediaDocument)
Audio(InputMediaAudio)
LivePhoto(InputMediaLivePhoto)
Photo(InputMediaPhoto)
Video(InputMediaVideo)
Trait Implementations§
Source§impl Clone for InputMedia
impl Clone for InputMedia
Source§fn clone(&self) -> InputMedia
fn clone(&self) -> InputMedia
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 InputMedia
impl Debug for InputMedia
Source§impl<'de> Deserialize<'de> for InputMedia
impl<'de> Deserialize<'de> for InputMedia
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
Source§impl From<InputMediaAnimation> for InputMedia
impl From<InputMediaAnimation> for InputMedia
Source§fn from(value: InputMediaAnimation) -> Self
fn from(value: InputMediaAnimation) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaAudio> for InputMedia
impl From<InputMediaAudio> for InputMedia
Source§fn from(value: InputMediaAudio) -> Self
fn from(value: InputMediaAudio) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaDocument> for InputMedia
impl From<InputMediaDocument> for InputMedia
Source§fn from(value: InputMediaDocument) -> Self
fn from(value: InputMediaDocument) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaLivePhoto> for InputMedia
impl From<InputMediaLivePhoto> for InputMedia
Source§fn from(value: InputMediaLivePhoto) -> Self
fn from(value: InputMediaLivePhoto) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaPhoto> for InputMedia
impl From<InputMediaPhoto> for InputMedia
Source§fn from(value: InputMediaPhoto) -> Self
fn from(value: InputMediaPhoto) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaVideo> for InputMedia
impl From<InputMediaVideo> for InputMedia
Source§fn from(value: InputMediaVideo) -> Self
fn from(value: InputMediaVideo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InputMedia
impl PartialEq for InputMedia
Source§fn eq(&self, other: &InputMedia) -> bool
fn eq(&self, other: &InputMedia) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InputMedia
impl Serialize for InputMedia
impl Eq for InputMedia
impl StructuralPartialEq for InputMedia
Auto Trait Implementations§
impl Freeze for InputMedia
impl RefUnwindSafe for InputMedia
impl Send for InputMedia
impl Sync for InputMedia
impl Unpin for InputMedia
impl UnsafeUnpin for InputMedia
impl UnwindSafe for InputMedia
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