pub struct UnreadNotifications {
pub notification_count: u64,
pub highlight_count: u64,
}Expand description
A room’s unread_notifications block (research doc §1.4, server plan
§3.5). highlight_count is server-computed and, per the server plan,
this server always reports 0 for it (no push-rule engine in v1) — this
type only models the wire shape, it does not assume either field’s
value.
Fields§
§notification_count: u64Events since the caller’s own read receipt, excluding their own.
highlight_count: u64The subset of notification_count that would trigger a highlight.
Always <= notification_count.
Trait Implementations§
Source§impl Clone for UnreadNotifications
impl Clone for UnreadNotifications
Source§impl Debug for UnreadNotifications
impl Debug for UnreadNotifications
Source§impl Default for UnreadNotifications
impl Default for UnreadNotifications
Source§impl<'de> Deserialize<'de> for UnreadNotifications
impl<'de> Deserialize<'de> for UnreadNotifications
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
impl Eq for UnreadNotifications
Source§impl PartialEq for UnreadNotifications
impl PartialEq for UnreadNotifications
Source§impl Serialize for UnreadNotifications
impl Serialize for UnreadNotifications
impl StructuralPartialEq for UnreadNotifications
Auto Trait Implementations§
impl Freeze for UnreadNotifications
impl RefUnwindSafe for UnreadNotifications
impl Send for UnreadNotifications
impl Sync for UnreadNotifications
impl Unpin for UnreadNotifications
impl UnsafeUnpin for UnreadNotifications
impl UnwindSafe for UnreadNotifications
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