pub struct UpdateUnreadChatCount { /* private fields */ }
Expand description
Number of unread chats, i.e. with unread messages or marked as unread, has changed. This update is sent only if the message database is used
Implementations§
Source§impl UpdateUnreadChatCount
impl UpdateUnreadChatCount
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> UpdateUnreadChatCountBuilder
pub fn chat_list(&self) -> &ChatList
pub fn total_count(&self) -> i32
pub fn unread_count(&self) -> i32
pub fn unread_unmuted_count(&self) -> i32
pub fn marked_as_unread_count(&self) -> i32
pub fn marked_as_unread_unmuted_count(&self) -> i32
Trait Implementations§
Source§impl AsRef<UpdateUnreadChatCount> for UpdateUnreadChatCount
impl AsRef<UpdateUnreadChatCount> for UpdateUnreadChatCount
Source§fn as_ref(&self) -> &UpdateUnreadChatCount
fn as_ref(&self) -> &UpdateUnreadChatCount
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for UpdateUnreadChatCount
impl Clone for UpdateUnreadChatCount
Source§fn clone(&self) -> UpdateUnreadChatCount
fn clone(&self) -> UpdateUnreadChatCount
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UpdateUnreadChatCount
impl Debug for UpdateUnreadChatCount
Source§impl Default for UpdateUnreadChatCount
impl Default for UpdateUnreadChatCount
Source§fn default() -> UpdateUnreadChatCount
fn default() -> UpdateUnreadChatCount
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateUnreadChatCount
impl<'de> Deserialize<'de> for UpdateUnreadChatCount
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UpdateUnreadChatCount
impl Serialize for UpdateUnreadChatCount
impl TDUpdate for UpdateUnreadChatCount
Auto Trait Implementations§
impl Freeze for UpdateUnreadChatCount
impl RefUnwindSafe for UpdateUnreadChatCount
impl Send for UpdateUnreadChatCount
impl Sync for UpdateUnreadChatCount
impl Unpin for UpdateUnreadChatCount
impl UnwindSafe for UpdateUnreadChatCount
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more