pub struct NotificationCounts {
pub unread: UInt,
pub missed_calls: UInt,
}
Expand description
Type for passing information about notification counts.
Fields§
§unread: UInt
The number of unread messages a user has across all of the rooms they are a member of.
missed_calls: UInt
The number of unacknowledged missed calls a user has across all rooms of which they are a member.
Implementations§
Trait Implementations§
Source§impl Clone for NotificationCounts
impl Clone for NotificationCounts
Source§fn clone(&self) -> NotificationCounts
fn clone(&self) -> NotificationCounts
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 NotificationCounts
impl Debug for NotificationCounts
Source§impl Default for NotificationCounts
impl Default for NotificationCounts
Source§fn default() -> NotificationCounts
fn default() -> NotificationCounts
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotificationCounts
impl<'de> Deserialize<'de> for NotificationCounts
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
Auto Trait Implementations§
impl Freeze for NotificationCounts
impl RefUnwindSafe for NotificationCounts
impl Send for NotificationCounts
impl Sync for NotificationCounts
impl Unpin for NotificationCounts
impl UnwindSafe for NotificationCounts
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