pub enum BotInlineMessage {
MediaAuto(BotInlineMessageMediaAuto),
Text(BotInlineMessageText),
MediaGeo(BotInlineMessageMediaGeo),
MediaVenue(BotInlineMessageMediaVenue),
MediaContact(BotInlineMessageMediaContact),
MediaInvoice(BotInlineMessageMediaInvoice),
MediaWebPage(BotInlineMessageMediaWebPage),
}Expand description
Variants§
MediaAuto(BotInlineMessageMediaAuto)
Text(BotInlineMessageText)
MediaGeo(BotInlineMessageMediaGeo)
MediaVenue(BotInlineMessageMediaVenue)
MediaContact(BotInlineMessageMediaContact)
MediaInvoice(BotInlineMessageMediaInvoice)
MediaWebPage(BotInlineMessageMediaWebPage)
Trait Implementations§
Source§impl Clone for BotInlineMessage
impl Clone for BotInlineMessage
Source§fn clone(&self) -> BotInlineMessage
fn clone(&self) -> BotInlineMessage
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 BotInlineMessage
impl Debug for BotInlineMessage
Source§impl Deserializable for BotInlineMessage
impl Deserializable for BotInlineMessage
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<BotInlineMessageMediaAuto> for BotInlineMessage
impl From<BotInlineMessageMediaAuto> for BotInlineMessage
Source§fn from(x: BotInlineMessageMediaAuto) -> Self
fn from(x: BotInlineMessageMediaAuto) -> Self
Converts to this type from the input type.
Source§impl From<BotInlineMessageMediaContact> for BotInlineMessage
impl From<BotInlineMessageMediaContact> for BotInlineMessage
Source§fn from(x: BotInlineMessageMediaContact) -> Self
fn from(x: BotInlineMessageMediaContact) -> Self
Converts to this type from the input type.
Source§impl From<BotInlineMessageMediaGeo> for BotInlineMessage
impl From<BotInlineMessageMediaGeo> for BotInlineMessage
Source§fn from(x: BotInlineMessageMediaGeo) -> Self
fn from(x: BotInlineMessageMediaGeo) -> Self
Converts to this type from the input type.
Source§impl From<BotInlineMessageMediaInvoice> for BotInlineMessage
impl From<BotInlineMessageMediaInvoice> for BotInlineMessage
Source§fn from(x: BotInlineMessageMediaInvoice) -> Self
fn from(x: BotInlineMessageMediaInvoice) -> Self
Converts to this type from the input type.
Source§impl From<BotInlineMessageMediaVenue> for BotInlineMessage
impl From<BotInlineMessageMediaVenue> for BotInlineMessage
Source§fn from(x: BotInlineMessageMediaVenue) -> Self
fn from(x: BotInlineMessageMediaVenue) -> Self
Converts to this type from the input type.
Source§impl From<BotInlineMessageMediaWebPage> for BotInlineMessage
impl From<BotInlineMessageMediaWebPage> for BotInlineMessage
Source§fn from(x: BotInlineMessageMediaWebPage) -> Self
fn from(x: BotInlineMessageMediaWebPage) -> Self
Converts to this type from the input type.
Source§impl From<BotInlineMessageText> for BotInlineMessage
impl From<BotInlineMessageText> for BotInlineMessage
Source§fn from(x: BotInlineMessageText) -> Self
fn from(x: BotInlineMessageText) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BotInlineMessage
impl PartialEq for BotInlineMessage
Source§impl Serializable for BotInlineMessage
impl Serializable for BotInlineMessage
Source§impl TryFrom<BotInlineMessage> for BotInlineMessageMediaAuto
impl TryFrom<BotInlineMessage> for BotInlineMessageMediaAuto
Source§type Error = BotInlineMessage
type Error = BotInlineMessage
The type returned in the event of a conversion error.
Source§impl TryFrom<BotInlineMessage> for BotInlineMessageMediaContact
impl TryFrom<BotInlineMessage> for BotInlineMessageMediaContact
Source§type Error = BotInlineMessage
type Error = BotInlineMessage
The type returned in the event of a conversion error.
Source§impl TryFrom<BotInlineMessage> for BotInlineMessageMediaGeo
impl TryFrom<BotInlineMessage> for BotInlineMessageMediaGeo
Source§type Error = BotInlineMessage
type Error = BotInlineMessage
The type returned in the event of a conversion error.
Source§impl TryFrom<BotInlineMessage> for BotInlineMessageMediaInvoice
impl TryFrom<BotInlineMessage> for BotInlineMessageMediaInvoice
Source§type Error = BotInlineMessage
type Error = BotInlineMessage
The type returned in the event of a conversion error.
Source§impl TryFrom<BotInlineMessage> for BotInlineMessageMediaVenue
impl TryFrom<BotInlineMessage> for BotInlineMessageMediaVenue
Source§type Error = BotInlineMessage
type Error = BotInlineMessage
The type returned in the event of a conversion error.
Source§impl TryFrom<BotInlineMessage> for BotInlineMessageMediaWebPage
impl TryFrom<BotInlineMessage> for BotInlineMessageMediaWebPage
Source§type Error = BotInlineMessage
type Error = BotInlineMessage
The type returned in the event of a conversion error.
Source§impl TryFrom<BotInlineMessage> for BotInlineMessageText
impl TryFrom<BotInlineMessage> for BotInlineMessageText
Source§type Error = BotInlineMessage
type Error = BotInlineMessage
The type returned in the event of a conversion error.
impl StructuralPartialEq for BotInlineMessage
Auto Trait Implementations§
impl Freeze for BotInlineMessage
impl RefUnwindSafe for BotInlineMessage
impl Send for BotInlineMessage
impl Sync for BotInlineMessage
impl Unpin for BotInlineMessage
impl UnsafeUnpin for BotInlineMessage
impl UnwindSafe for BotInlineMessage
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