[][src]Enum telegram_bot_raw::types::message::MessageOrChannelPost

pub enum MessageOrChannelPost {
    Message(Message),
    ChannelPost(ChannelPost),
}

This object represents a chat message or a channel post.

Variants

Message(Message)
ChannelPost(ChannelPost)

Trait Implementations

impl Clone for MessageOrChannelPost[src]

impl Debug for MessageOrChannelPost[src]

impl<'de> Deserialize<'de> for MessageOrChannelPost[src]

impl PartialEq<MessageOrChannelPost> for MessageOrChannelPost[src]

impl PartialOrd<MessageOrChannelPost> for MessageOrChannelPost[src]

impl StructuralPartialEq for MessageOrChannelPost[src]

impl ToMessageId for MessageOrChannelPost[src]

impl ToSourceChat for MessageOrChannelPost[src]

Auto Trait Implementations

impl RefUnwindSafe for MessageOrChannelPost[src]

impl Send for MessageOrChannelPost[src]

impl Sync for MessageOrChannelPost[src]

impl Unpin for MessageOrChannelPost[src]

impl UnwindSafe for MessageOrChannelPost[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<M> CanDeleteMessage for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanEditMessageCaption for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanEditMessageLiveLocation for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanEditMessageReplyMarkup for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanEditMessageText for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanForwardMessage for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanPinMessage for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanReplySendAudio for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanReplySendContact for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanReplySendDocument for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanReplySendLocation for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanReplySendMessage for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanReplySendPhoto for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanReplySendPoll for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanReplySendVenue for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanReplySendVideo for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanStopMessageLiveLocation for M where
    M: ToMessageId + ToSourceChat
[src]

impl<M> CanStopPoll for M where
    M: ToMessageId + ToSourceChat
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.