[][src]Struct rtdlib::types::Chat

pub struct Chat { /* fields omitted */ }

A chat. (Can be a private chat, basic group, supergroup, or secret chat)

Implementations

impl Chat[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

pub fn builder() -> RTDChatBuilder[src]

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

pub fn type_(&self) -> &ChatType[src]

pub fn chat_list(&self) -> &Option<ChatList>[src]

pub fn title(&self) -> &String[src]

pub fn photo(&self) -> &Option<ChatPhoto>[src]

pub fn permissions(&self) -> &ChatPermissions[src]

pub fn last_message(&self) -> &Option<Message>[src]

pub fn order(&self) -> &String[src]

pub fn source(&self) -> &Option<ChatSource>[src]

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

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

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

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

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

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

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

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

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

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

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

pub fn notification_settings(&self) -> &ChatNotificationSettings[src]

pub fn action_bar(&self) -> &Option<ChatActionBar>[src]

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

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

pub fn draft_message(&self) -> &Option<DraftMessage>[src]

pub fn client_data(&self) -> &String[src]

Trait Implementations

impl AsRef<Chat> for Chat[src]

impl Clone for Chat[src]

impl Debug for Chat[src]

impl Default for Chat[src]

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

impl RObject for Chat[src]

impl Serialize 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, 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.