[][src]Enum telegram_bot_fork::types::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)

Methods

impl MessageChat[src]

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

Trait Implementations

impl Debug for MessageChat[src]

impl Ord for MessageChat[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl PartialEq<MessageChat> for MessageChat[src]

impl Hash for MessageChat[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialOrd<MessageChat> for MessageChat[src]

impl ToChatRef for MessageChat[src]

impl Eq for MessageChat[src]

impl Clone for MessageChat[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for MessageChat

impl Sync for MessageChat

Blanket Implementations

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.

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

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

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

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

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

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

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

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

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

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

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

impl<S> ToChatRef for S where
    S: Deref,
    <S as Deref>::Target: ToChatRef
[src]

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

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

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

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

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

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

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

impl<T> Erased for T

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]