[][src]Enum tgbot::types::MessageKind

pub enum MessageKind {
    Channel {
        chat: ChannelChat,
        author_signature: Option<String>,
    },
    Group {
        chat: GroupChat,
        from: User,
    },
    Private {
        chat: PrivateChat,
        from: User,
    },
    Supergroup {
        chat: SupergroupChat,
        from: User,
    },
}

Contains chat-specific data

Variants

Channel

Channel chat

Fields of Channel

chat: ChannelChat

Channel chat

author_signature: Option<String>

Author signature, if exists

Group

Group chat

Fields of Group

chat: GroupChat

Group chat

from: User

Sender

Private

Private chat

Fields of Private

chat: PrivateChat

Private chat

from: User

Sender

Supergroup

Supergroup chat

Fields of Supergroup

chat: SupergroupChat

Supergroup chat

from: User

Sender

Trait Implementations

impl Clone for MessageKind[src]

impl Debug for MessageKind[src]

Auto Trait Implementations

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<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.