pub enum MessageMedia {
Show 19 variants
Empty,
Photo(MessageMediaPhoto),
Geo(MessageMediaGeo),
Contact(MessageMediaContact),
Unsupported,
Document(MessageMediaDocument),
WebPage(MessageMediaWebPage),
Venue(MessageMediaVenue),
Game(MessageMediaGame),
Invoice(Box<MessageMediaInvoice>),
GeoLive(MessageMediaGeoLive),
Poll(MessageMediaPoll),
Dice(MessageMediaDice),
Story(Box<MessageMediaStory>),
Giveaway(MessageMediaGiveaway),
GiveawayResults(MessageMediaGiveawayResults),
PaidMedia(MessageMediaPaidMedia),
ToDo(MessageMediaToDo),
VideoStream(MessageMediaVideoStream),
}Expand description
Variants§
Empty
Photo(MessageMediaPhoto)
Geo(MessageMediaGeo)
Contact(MessageMediaContact)
Unsupported
Document(MessageMediaDocument)
WebPage(MessageMediaWebPage)
Venue(MessageMediaVenue)
Game(MessageMediaGame)
Invoice(Box<MessageMediaInvoice>)
GeoLive(MessageMediaGeoLive)
Poll(MessageMediaPoll)
Dice(MessageMediaDice)
Story(Box<MessageMediaStory>)
Giveaway(MessageMediaGiveaway)
GiveawayResults(MessageMediaGiveawayResults)
PaidMedia(MessageMediaPaidMedia)
ToDo(MessageMediaToDo)
VideoStream(MessageMediaVideoStream)
Trait Implementations§
Source§impl Clone for MessageMedia
impl Clone for MessageMedia
Source§fn clone(&self) -> MessageMedia
fn clone(&self) -> MessageMedia
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 MessageMedia
impl Debug for MessageMedia
Source§impl Deserializable for MessageMedia
impl Deserializable for MessageMedia
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<MessageMediaContact> for MessageMedia
impl From<MessageMediaContact> for MessageMedia
Source§fn from(x: MessageMediaContact) -> Self
fn from(x: MessageMediaContact) -> Self
Converts to this type from the input type.
Source§impl From<MessageMediaDice> for MessageMedia
impl From<MessageMediaDice> for MessageMedia
Source§fn from(x: MessageMediaDice) -> Self
fn from(x: MessageMediaDice) -> Self
Converts to this type from the input type.
Source§impl From<MessageMediaDocument> for MessageMedia
impl From<MessageMediaDocument> for MessageMedia
Source§fn from(x: MessageMediaDocument) -> Self
fn from(x: MessageMediaDocument) -> Self
Converts to this type from the input type.
Source§impl From<MessageMediaEmpty> for MessageMedia
impl From<MessageMediaEmpty> for MessageMedia
Source§fn from(_x: MessageMediaEmpty) -> Self
fn from(_x: MessageMediaEmpty) -> Self
Converts to this type from the input type.
Source§impl From<MessageMediaGame> for MessageMedia
impl From<MessageMediaGame> for MessageMedia
Source§fn from(x: MessageMediaGame) -> Self
fn from(x: MessageMediaGame) -> Self
Converts to this type from the input type.
Source§impl From<MessageMediaGeo> for MessageMedia
impl From<MessageMediaGeo> for MessageMedia
Source§fn from(x: MessageMediaGeo) -> Self
fn from(x: MessageMediaGeo) -> Self
Converts to this type from the input type.
Source§impl From<MessageMediaGeoLive> for MessageMedia
impl From<MessageMediaGeoLive> for MessageMedia
Source§fn from(x: MessageMediaGeoLive) -> Self
fn from(x: MessageMediaGeoLive) -> Self
Converts to this type from the input type.
Source§impl From<MessageMediaGiveaway> for MessageMedia
impl From<MessageMediaGiveaway> for MessageMedia
Source§fn from(x: MessageMediaGiveaway) -> Self
fn from(x: MessageMediaGiveaway) -> Self
Converts to this type from the input type.
Source§impl From<MessageMediaGiveawayResults> for MessageMedia
impl From<MessageMediaGiveawayResults> for MessageMedia
Source§fn from(x: MessageMediaGiveawayResults) -> Self
fn from(x: MessageMediaGiveawayResults) -> Self
Converts to this type from the input type.
Source§impl From<MessageMediaInvoice> for MessageMedia
impl From<MessageMediaInvoice> for MessageMedia
Source§fn from(x: MessageMediaInvoice) -> Self
fn from(x: MessageMediaInvoice) -> Self
Converts to this type from the input type.
Source§impl From<MessageMediaPaidMedia> for MessageMedia
impl From<MessageMediaPaidMedia> for MessageMedia
Source§fn from(x: MessageMediaPaidMedia) -> Self
fn from(x: MessageMediaPaidMedia) -> Self
Converts to this type from the input type.
Source§impl From<MessageMediaPhoto> for MessageMedia
impl From<MessageMediaPhoto> for MessageMedia
Source§fn from(x: MessageMediaPhoto) -> Self
fn from(x: MessageMediaPhoto) -> Self
Converts to this type from the input type.
Source§impl From<MessageMediaPoll> for MessageMedia
impl From<MessageMediaPoll> for MessageMedia
Source§fn from(x: MessageMediaPoll) -> Self
fn from(x: MessageMediaPoll) -> Self
Converts to this type from the input type.
Source§impl From<MessageMediaStory> for MessageMedia
impl From<MessageMediaStory> for MessageMedia
Source§fn from(x: MessageMediaStory) -> Self
fn from(x: MessageMediaStory) -> Self
Converts to this type from the input type.
Source§impl From<MessageMediaToDo> for MessageMedia
impl From<MessageMediaToDo> for MessageMedia
Source§fn from(x: MessageMediaToDo) -> Self
fn from(x: MessageMediaToDo) -> Self
Converts to this type from the input type.
Source§impl From<MessageMediaUnsupported> for MessageMedia
impl From<MessageMediaUnsupported> for MessageMedia
Source§fn from(_x: MessageMediaUnsupported) -> Self
fn from(_x: MessageMediaUnsupported) -> Self
Converts to this type from the input type.
Source§impl From<MessageMediaVenue> for MessageMedia
impl From<MessageMediaVenue> for MessageMedia
Source§fn from(x: MessageMediaVenue) -> Self
fn from(x: MessageMediaVenue) -> Self
Converts to this type from the input type.
Source§impl From<MessageMediaVideoStream> for MessageMedia
impl From<MessageMediaVideoStream> for MessageMedia
Source§fn from(x: MessageMediaVideoStream) -> Self
fn from(x: MessageMediaVideoStream) -> Self
Converts to this type from the input type.
Source§impl From<MessageMediaWebPage> for MessageMedia
impl From<MessageMediaWebPage> for MessageMedia
Source§fn from(x: MessageMediaWebPage) -> Self
fn from(x: MessageMediaWebPage) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MessageMedia
impl PartialEq for MessageMedia
Source§impl Serializable for MessageMedia
impl Serializable for MessageMedia
Source§impl TryFrom<MessageMedia> for MessageMediaContact
impl TryFrom<MessageMedia> for MessageMediaContact
Source§type Error = MessageMedia
type Error = MessageMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageMedia> for MessageMediaDice
impl TryFrom<MessageMedia> for MessageMediaDice
Source§type Error = MessageMedia
type Error = MessageMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageMedia> for MessageMediaDocument
impl TryFrom<MessageMedia> for MessageMediaDocument
Source§type Error = MessageMedia
type Error = MessageMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageMedia> for MessageMediaGame
impl TryFrom<MessageMedia> for MessageMediaGame
Source§type Error = MessageMedia
type Error = MessageMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageMedia> for MessageMediaGeo
impl TryFrom<MessageMedia> for MessageMediaGeo
Source§type Error = MessageMedia
type Error = MessageMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageMedia> for MessageMediaGeoLive
impl TryFrom<MessageMedia> for MessageMediaGeoLive
Source§type Error = MessageMedia
type Error = MessageMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageMedia> for MessageMediaGiveaway
impl TryFrom<MessageMedia> for MessageMediaGiveaway
Source§type Error = MessageMedia
type Error = MessageMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageMedia> for MessageMediaGiveawayResults
impl TryFrom<MessageMedia> for MessageMediaGiveawayResults
Source§type Error = MessageMedia
type Error = MessageMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageMedia> for MessageMediaInvoice
impl TryFrom<MessageMedia> for MessageMediaInvoice
Source§type Error = MessageMedia
type Error = MessageMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageMedia> for MessageMediaPaidMedia
impl TryFrom<MessageMedia> for MessageMediaPaidMedia
Source§type Error = MessageMedia
type Error = MessageMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageMedia> for MessageMediaPhoto
impl TryFrom<MessageMedia> for MessageMediaPhoto
Source§type Error = MessageMedia
type Error = MessageMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageMedia> for MessageMediaPoll
impl TryFrom<MessageMedia> for MessageMediaPoll
Source§type Error = MessageMedia
type Error = MessageMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageMedia> for MessageMediaStory
impl TryFrom<MessageMedia> for MessageMediaStory
Source§type Error = MessageMedia
type Error = MessageMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageMedia> for MessageMediaToDo
impl TryFrom<MessageMedia> for MessageMediaToDo
Source§type Error = MessageMedia
type Error = MessageMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageMedia> for MessageMediaVenue
impl TryFrom<MessageMedia> for MessageMediaVenue
Source§type Error = MessageMedia
type Error = MessageMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageMedia> for MessageMediaVideoStream
impl TryFrom<MessageMedia> for MessageMediaVideoStream
Source§type Error = MessageMedia
type Error = MessageMedia
The type returned in the event of a conversion error.
Source§impl TryFrom<MessageMedia> for MessageMediaWebPage
impl TryFrom<MessageMedia> for MessageMediaWebPage
Source§type Error = MessageMedia
type Error = MessageMedia
The type returned in the event of a conversion error.
impl StructuralPartialEq for MessageMedia
Auto Trait Implementations§
impl Freeze for MessageMedia
impl RefUnwindSafe for MessageMedia
impl Send for MessageMedia
impl Sync for MessageMedia
impl Unpin for MessageMedia
impl UnsafeUnpin for MessageMedia
impl UnwindSafe for MessageMedia
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