[][src]Enum telegram_bot_raw::types::chat::MessageChat

pub enum MessageChat {
    Private(User),
    Group(Group),
    Supergroup(Supergroup),
    // some variants omitted
}

This object represents a private, group or supergroup.

Variants

Private(User)
Group(Group)
Supergroup(Supergroup)

Implementations

impl MessageChat[src]

pub fn id(&self) -> ChatId[src]

Trait Implementations

impl Clone for MessageChat[src]

impl Debug for MessageChat[src]

impl Eq for MessageChat[src]

impl Hash for MessageChat[src]

impl Ord for MessageChat[src]

impl PartialEq<MessageChat> for MessageChat[src]

impl PartialOrd<MessageChat> for MessageChat[src]

impl StructuralEq for MessageChat[src]

impl StructuralPartialEq for MessageChat[src]

impl ToChatRef for MessageChat[src]

Auto Trait Implementations

impl RefUnwindSafe for MessageChat[src]

impl Send for MessageChat[src]

impl Sync for MessageChat[src]

impl Unpin for MessageChat[src]

impl UnwindSafe for MessageChat[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<C> CanGetChat for C where
    C: ToChatRef
[src]

impl<C> CanGetChatAdministrators for C where
    C: ToChatRef
[src]

impl<C> CanGetChatMemberForChat for C where
    C: ToChatRef
[src]

impl<C> CanGetChatMembersCount for C where
    C: ToChatRef
[src]

impl<C> CanKickChatMemberForChat for C where
    C: ToChatRef
[src]

impl<C> CanLeaveChat for C where
    C: ToChatRef
[src]

impl<M> CanSendAudio for M where
    M: ToChatRef
[src]

impl<C> CanSendChatAction for C where
    C: ToChatRef
[src]

impl<'p, 'f, 'l, C> CanSendContact<'p, 'f, 'l> for C where
    C: ToChatRef
[src]

impl<M> CanSendDocument for M where
    M: ToChatRef
[src]

impl<C> CanSendLocation for C where
    C: ToChatRef
[src]

impl<C> CanSendMessage for C where
    C: ToChatRef
[src]

impl<M> CanSendPhoto for M where
    M: ToChatRef
[src]

impl<C> CanSendPoll for C where
    C: ToChatRef
[src]

impl<'t, 'a, 'f, C> CanSendVenue<'t, 'a, 'f> for C where
    C: ToChatRef
[src]

impl<M> CanSendVideo for M where
    M: ToChatRef
[src]

impl<C> CanUnbanChatMemberForChat for C where
    C: ToChatRef
[src]

impl<C> CanUnpinMessage for C where
    C: ToChatRef
[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.