Struct ruma_client::api::r0::sync::sync_events::Timeline
source · pub struct Timeline {
pub limited: bool,
pub prev_batch: String,
pub events: Vec<RoomEvent, Global>,
}
Expand description
Events in the room.
Fields
limited: bool
True if the number of events returned was limited by the limit
on the filter.
prev_batch: String
A token that can be supplied to to the from
parameter of the
/rooms/{roomId}/messages
endpoint.
events: Vec<RoomEvent, Global>
A list of events.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Timeline
impl<'de> Deserialize<'de> for Timeline
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<Timeline, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Timeline, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for Timeline
impl Serialize for Timeline
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Timeline
impl Send for Timeline
impl Sync for Timeline
impl Unpin for Timeline
impl UnwindSafe for Timeline
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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