[−][src]Enum rtdlib::types::ChatList
Describes a list of chats
Variants
Main(ChatListMain)A main list of chats
Archive(ChatListArchive)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
Methods
impl ChatList[src]
pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]
pub fn is_main(&self) -> bool[src]
pub fn is_archive(&self) -> bool[src]
pub fn on_main<F: FnOnce(&ChatListMain)>(&self, fnc: F) -> &Self[src]
pub fn on_archive<F: FnOnce(&ChatListArchive)>(&self, fnc: F) -> &Self[src]
pub fn as_main(&self) -> Option<&ChatListMain>[src]
pub fn as_archive(&self) -> Option<&ChatListArchive>[src]
pub fn main<T: AsRef<ChatListMain>>(t: T) -> Self[src]
pub fn archive<T: AsRef<ChatListArchive>>(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]
fn deserialize<D>(deserializer: D) -> Result<ChatList, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
impl RObject for ChatList[src]
impl Serialize for ChatList[src]
Auto Trait Implementations
impl RefUnwindSafe for ChatList
impl Send for ChatList
impl Sync for ChatList
impl Unpin for ChatList
impl UnwindSafe for ChatList
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,