pub enum InputMedia {
Show 20 variants
Empty,
UploadedPhoto(InputMediaUploadedPhoto),
Photo(InputMediaPhoto),
GeoPoint(InputMediaGeoPoint),
Contact(InputMediaContact),
UploadedDocument(InputMediaUploadedDocument),
Document(InputMediaDocument),
Venue(InputMediaVenue),
PhotoExternal(InputMediaPhotoExternal),
DocumentExternal(InputMediaDocumentExternal),
Game(InputMediaGame),
Invoice(Box<InputMediaInvoice>),
GeoLive(InputMediaGeoLive),
Poll(InputMediaPoll),
Dice(InputMediaDice),
Story(InputMediaStory),
WebPage(InputMediaWebPage),
PaidMedia(InputMediaPaidMedia),
Todo(InputMediaTodo),
StakeDice(InputMediaStakeDice),
}Expand description
Variants§
Empty
UploadedPhoto(InputMediaUploadedPhoto)
Photo(InputMediaPhoto)
GeoPoint(InputMediaGeoPoint)
Contact(InputMediaContact)
UploadedDocument(InputMediaUploadedDocument)
Document(InputMediaDocument)
Venue(InputMediaVenue)
PhotoExternal(InputMediaPhotoExternal)
DocumentExternal(InputMediaDocumentExternal)
Game(InputMediaGame)
Invoice(Box<InputMediaInvoice>)
GeoLive(InputMediaGeoLive)
Poll(InputMediaPoll)
Dice(InputMediaDice)
Story(InputMediaStory)
WebPage(InputMediaWebPage)
PaidMedia(InputMediaPaidMedia)
Todo(InputMediaTodo)
StakeDice(InputMediaStakeDice)
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 Deserializable for InputMedia
impl Deserializable for InputMedia
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<InputMediaContact> for InputMedia
impl From<InputMediaContact> for InputMedia
Source§fn from(x: InputMediaContact) -> Self
fn from(x: InputMediaContact) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaDice> for InputMedia
impl From<InputMediaDice> for InputMedia
Source§fn from(x: InputMediaDice) -> Self
fn from(x: InputMediaDice) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaDocument> for InputMedia
impl From<InputMediaDocument> for InputMedia
Source§fn from(x: InputMediaDocument) -> Self
fn from(x: InputMediaDocument) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaDocumentExternal> for InputMedia
impl From<InputMediaDocumentExternal> for InputMedia
Source§fn from(x: InputMediaDocumentExternal) -> Self
fn from(x: InputMediaDocumentExternal) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaEmpty> for InputMedia
impl From<InputMediaEmpty> for InputMedia
Source§fn from(_x: InputMediaEmpty) -> Self
fn from(_x: InputMediaEmpty) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaGame> for InputMedia
impl From<InputMediaGame> for InputMedia
Source§fn from(x: InputMediaGame) -> Self
fn from(x: InputMediaGame) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaGeoLive> for InputMedia
impl From<InputMediaGeoLive> for InputMedia
Source§fn from(x: InputMediaGeoLive) -> Self
fn from(x: InputMediaGeoLive) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaGeoPoint> for InputMedia
impl From<InputMediaGeoPoint> for InputMedia
Source§fn from(x: InputMediaGeoPoint) -> Self
fn from(x: InputMediaGeoPoint) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaInvoice> for InputMedia
impl From<InputMediaInvoice> for InputMedia
Source§fn from(x: InputMediaInvoice) -> Self
fn from(x: InputMediaInvoice) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaPaidMedia> for InputMedia
impl From<InputMediaPaidMedia> for InputMedia
Source§fn from(x: InputMediaPaidMedia) -> Self
fn from(x: InputMediaPaidMedia) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaPhoto> for InputMedia
impl From<InputMediaPhoto> for InputMedia
Source§fn from(x: InputMediaPhoto) -> Self
fn from(x: InputMediaPhoto) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaPhotoExternal> for InputMedia
impl From<InputMediaPhotoExternal> for InputMedia
Source§fn from(x: InputMediaPhotoExternal) -> Self
fn from(x: InputMediaPhotoExternal) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaPoll> for InputMedia
impl From<InputMediaPoll> for InputMedia
Source§fn from(x: InputMediaPoll) -> Self
fn from(x: InputMediaPoll) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaStakeDice> for InputMedia
impl From<InputMediaStakeDice> for InputMedia
Source§fn from(x: InputMediaStakeDice) -> Self
fn from(x: InputMediaStakeDice) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaStory> for InputMedia
impl From<InputMediaStory> for InputMedia
Source§fn from(x: InputMediaStory) -> Self
fn from(x: InputMediaStory) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaTodo> for InputMedia
impl From<InputMediaTodo> for InputMedia
Source§fn from(x: InputMediaTodo) -> Self
fn from(x: InputMediaTodo) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaUploadedDocument> for InputMedia
impl From<InputMediaUploadedDocument> for InputMedia
Source§fn from(x: InputMediaUploadedDocument) -> Self
fn from(x: InputMediaUploadedDocument) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaUploadedPhoto> for InputMedia
impl From<InputMediaUploadedPhoto> for InputMedia
Source§fn from(x: InputMediaUploadedPhoto) -> Self
fn from(x: InputMediaUploadedPhoto) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaVenue> for InputMedia
impl From<InputMediaVenue> for InputMedia
Source§fn from(x: InputMediaVenue) -> Self
fn from(x: InputMediaVenue) -> Self
Converts to this type from the input type.
Source§impl From<InputMediaWebPage> for InputMedia
impl From<InputMediaWebPage> for InputMedia
Source§fn from(x: InputMediaWebPage) -> Self
fn from(x: InputMediaWebPage) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InputMedia
impl PartialEq for InputMedia
Source§impl Serializable for InputMedia
impl Serializable for InputMedia
Source§impl TryFrom<InputMedia> for InputMediaContact
impl TryFrom<InputMedia> for InputMediaContact
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<InputMedia> for InputMediaDice
impl TryFrom<InputMedia> for InputMediaDice
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<InputMedia> for InputMediaDocument
impl TryFrom<InputMedia> for InputMediaDocument
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<InputMedia> for InputMediaDocumentExternal
impl TryFrom<InputMedia> for InputMediaDocumentExternal
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<InputMedia> for InputMediaGame
impl TryFrom<InputMedia> for InputMediaGame
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<InputMedia> for InputMediaGeoLive
impl TryFrom<InputMedia> for InputMediaGeoLive
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<InputMedia> for InputMediaGeoPoint
impl TryFrom<InputMedia> for InputMediaGeoPoint
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<InputMedia> for InputMediaInvoice
impl TryFrom<InputMedia> for InputMediaInvoice
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<InputMedia> for InputMediaPaidMedia
impl TryFrom<InputMedia> for InputMediaPaidMedia
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<InputMedia> for InputMediaPhoto
impl TryFrom<InputMedia> for InputMediaPhoto
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<InputMedia> for InputMediaPhotoExternal
impl TryFrom<InputMedia> for InputMediaPhotoExternal
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<InputMedia> for InputMediaPoll
impl TryFrom<InputMedia> for InputMediaPoll
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<InputMedia> for InputMediaStakeDice
impl TryFrom<InputMedia> for InputMediaStakeDice
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<InputMedia> for InputMediaStory
impl TryFrom<InputMedia> for InputMediaStory
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<InputMedia> for InputMediaTodo
impl TryFrom<InputMedia> for InputMediaTodo
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<InputMedia> for InputMediaUploadedDocument
impl TryFrom<InputMedia> for InputMediaUploadedDocument
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<InputMedia> for InputMediaUploadedPhoto
impl TryFrom<InputMedia> for InputMediaUploadedPhoto
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<InputMedia> for InputMediaVenue
impl TryFrom<InputMedia> for InputMediaVenue
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<InputMedia> for InputMediaWebPage
impl TryFrom<InputMedia> for InputMediaWebPage
Source§type Error = InputMedia
type Error = InputMedia
The type returned in the event of a conversion error.
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