pub struct TimelineSection {
pub events: Vec<RawEvent>,
pub limited: bool,
pub prev_batch: Option<String>,
}Expand description
A room’s timeline block.
Fields§
§events: Vec<RawEvent>Timeline events in this window, oldest first.
limited: booltrue when there is a gap between since and this window — the
client fell behind, or this is the room’s first sync (research doc
§1.4, server plan §3.2). A limited window’s accompanying state
includes the gap-rule membership backfill (server plan §3.3).
prev_batch: Option<String>The pagination token for GET /rooms/{roomId}/messages?from= <prev_batch>&dir=b to page further back than this window. Absent
only when the window covers the room’s entire history.
Trait Implementations§
Source§impl Clone for TimelineSection
impl Clone for TimelineSection
Source§impl Debug for TimelineSection
impl Debug for TimelineSection
Source§impl Default for TimelineSection
impl Default for TimelineSection
Source§impl<'de> Deserialize<'de> for TimelineSection
impl<'de> Deserialize<'de> for TimelineSection
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
Source§impl PartialEq for TimelineSection
impl PartialEq for TimelineSection
Source§impl Serialize for TimelineSection
impl Serialize for TimelineSection
impl StructuralPartialEq for TimelineSection
Auto Trait Implementations§
impl Freeze for TimelineSection
impl RefUnwindSafe for TimelineSection
impl Send for TimelineSection
impl Sync for TimelineSection
impl Unpin for TimelineSection
impl UnsafeUnpin for TimelineSection
impl UnwindSafe for TimelineSection
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