pub struct IncrementChannel {
pub channel_id: ChannelId,
pub last_event_seq: Seq,
pub need_sync: bool,
pub unread_post_id: Option<String>,
pub last_read_seq: Option<i64>,
pub projection_revision: Option<u64>,
pub raw: Bytes,
}Expand description
increment_channel 帧 data(IncrementChannel.ToMap())的解析结果(B-rest 契约)。
真 Go data 含 id/teamId/displayName/lastEventSeq/unreadCount/needSync/mentionList/
urgentPostList(设计文档 §1.3);helix 另保留当前 viewer 的未读 anchor/read watermark/
projection revision,供 member projection strict guard 使用;raw 供 emit
im:channel:increment 透传。
Fields§
§channel_id: ChannelId§last_event_seq: Seq§need_sync: bool§unread_post_id: Option<String>Viewer-scoped unread anchor from the same snapshot as the optional projection revision.
last_read_seq: Option<i64>Viewer-scoped read boundary, when supplied by the versioned member projection.
projection_revision: Option<u64>Strict member projection revision; zero remains a legacy snapshot marker.
raw: BytesTrait Implementations§
Source§impl Clone for IncrementChannel
impl Clone for IncrementChannel
Source§impl Debug for IncrementChannel
impl Debug for IncrementChannel
impl Eq for IncrementChannel
Source§impl PartialEq for IncrementChannel
impl PartialEq for IncrementChannel
impl StructuralPartialEq for IncrementChannel
Auto Trait Implementations§
impl !Freeze for IncrementChannel
impl RefUnwindSafe for IncrementChannel
impl Send for IncrementChannel
impl Sync for IncrementChannel
impl Unpin for IncrementChannel
impl UnsafeUnpin for IncrementChannel
impl UnwindSafe for IncrementChannel
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