pub enum InputMedia {
Photo(Box<InputMediaPhoto>),
Video(Box<InputMediaVideo>),
Animation(Box<InputMediaAnimation>),
Audio(Box<InputMediaAudio>),
Document(Box<InputMediaDocument>),
}Variants§
Photo(Box<InputMediaPhoto>)
Video(Box<InputMediaVideo>)
Animation(Box<InputMediaAnimation>)
Audio(Box<InputMediaAudio>)
Document(Box<InputMediaDocument>)
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 · 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<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.
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