Struct rust_tdlib::types::UpdateUnreadChatCount
source · 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