[][src]Enum rtdlib::types::ChatList

pub enum ChatList {
    Archive(ChatListArchive),
    Main(ChatListMain),
    // some variants omitted
}

Describes a list of chats

Variants

A list of chats usually located at the top of the main chat list. Unmuted chats are automatically moved from the Archive to the Main chat list when a new message arrives

A main list of chats

Implementations

impl ChatList[src]

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

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

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

pub fn on_archive<F: FnOnce(&ChatListArchive)>(&self, fnc: F) -> &Self[src]

pub fn on_main<F: FnOnce(&ChatListMain)>(&self, fnc: F) -> &Self[src]

pub fn as_archive(&self) -> Option<&ChatListArchive>[src]

pub fn as_main(&self) -> Option<&ChatListMain>[src]

pub fn archive<T: AsRef<ChatListArchive>>(t: T) -> Self[src]

pub fn main<T: AsRef<ChatListMain>>(t: T) -> Self[src]

Trait Implementations

impl AsRef<ChatList> for ChatList[src]

impl Clone for ChatList[src]

impl Debug for ChatList[src]

impl Default for ChatList[src]

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

impl RObject for ChatList[src]

impl Serialize for ChatList[src]

Auto Trait Implementations

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.