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
sourceimpl 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
sourceimpl AsRef<UpdateUnreadChatCount> for UpdateUnreadChatCount
impl AsRef<UpdateUnreadChatCount> for UpdateUnreadChatCount
sourcefn as_ref(&self) -> &UpdateUnreadChatCount
fn as_ref(&self) -> &UpdateUnreadChatCount
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for UpdateUnreadChatCount
impl Clone for UpdateUnreadChatCount
sourcefn clone(&self) -> UpdateUnreadChatCount
fn clone(&self) -> UpdateUnreadChatCount
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for UpdateUnreadChatCount
impl Debug for UpdateUnreadChatCount
sourceimpl Default for UpdateUnreadChatCount
impl Default for UpdateUnreadChatCount
sourcefn default() -> UpdateUnreadChatCount
fn default() -> UpdateUnreadChatCount
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for UpdateUnreadChatCount
impl<'de> Deserialize<'de> for UpdateUnreadChatCount
sourcefn 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
sourceimpl Serialize for UpdateUnreadChatCount
impl Serialize for UpdateUnreadChatCount
impl TDUpdate for UpdateUnreadChatCount
Auto Trait Implementations
impl RefUnwindSafe for UpdateUnreadChatCount
impl Send for UpdateUnreadChatCount
impl Sync for UpdateUnreadChatCount
impl Unpin for UpdateUnreadChatCount
impl UnwindSafe for UpdateUnreadChatCount
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more