[][src]Enum telexide::model::Chat

pub enum Chat {
    Private(PrivateChat),
    Group(GroupChat),
    SuperGroup(SuperGroupChat),
    Channel(ChannelChat),
}

This object represents a chat. It can be a private, group, supergroup or channel chat

Variants

Private(PrivateChat)
Group(GroupChat)
SuperGroup(SuperGroupChat)
Channel(ChannelChat)

Methods

impl Chat[src]

pub fn get_id(&self) -> i64[src]

Gets the id of the chat

Trait Implementations

impl Clone for Chat[src]

impl Debug for Chat[src]

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

impl From<Chat> for ExportChatInviteLink[src]

impl From<Chat> for DeleteChatPhoto[src]

impl From<Chat> for UnpinChatMessage[src]

impl From<Chat> for LeaveChat[src]

impl From<Chat> for GetChat[src]

impl From<Chat> for GetChatAdministrators[src]

impl From<Chat> for GetChatMembersCount[src]

impl From<Chat> for DeleteChatStickerSet[src]

impl From<Chat> for RawChat[src]

impl From<RawChat> for Chat[src]

impl PartialEq<Chat> for Chat[src]

impl Serialize for Chat[src]

impl StructuralPartialEq for Chat[src]

Auto Trait Implementations

impl RefUnwindSafe for Chat

impl Send for Chat

impl Sync for Chat

impl Unpin for Chat

impl UnwindSafe for Chat

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> CloneAny for T where
    T: Clone + Any
[src]

impl<T> DebugAny for T where
    T: Any + Debug
[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.

impl<T> UnsafeAny for T where
    T: Any