Struct teloxide_core::types::Chat[][src]

pub struct Chat {
    pub id: i64,
    pub kind: ChatKind,
    pub photo: Option<ChatPhoto>,
    pub pinned_message: Option<Box<Message>>,
}

This object represents a chat.

The official docs.

Fields

id: i64

A unique identifier for this chat. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.

kind: ChatKindphoto: Option<ChatPhoto>

A chat photo. Returned only in GetChat.

pinned_message: Option<Box<Message>>

The most recent pinned message (by sending date). Returned only in GetChat.

Implementations

impl Chat[src]

pub fn is_private(&self) -> bool[src]

pub fn is_group(&self) -> bool[src]

pub fn is_supergroup(&self) -> bool[src]

pub fn is_channel(&self) -> bool[src]

pub fn is_chat(&self) -> bool[src]

Trait Implementations

impl Clone for Chat[src]

impl Debug for Chat[src]

impl<'de> Deserialize<'de> 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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument 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.