[][src]Struct ruma_client_api::r0::context::get_context::IncomingResponse

pub struct IncomingResponse {
    pub end: String,
    pub event: EventResult<RoomEvent>,
    pub events_after: Vec<EventResult<RoomEvent>>,
    pub events_before: Vec<EventResult<RoomEvent>>,
    pub start: String,
    pub state: Vec<EventResult<StateEvent>>,
}

'Incoming' variant of Response.

Fields

end: String

A token that can be used to paginate forwards with.

event: EventResult<RoomEvent>

Details of the requested event.

events_after: Vec<EventResult<RoomEvent>>

A list of room events that happened just after the requested event, in chronological order.

events_before: Vec<EventResult<RoomEvent>>

A list of room events that happened just before the requested event, in reverse-chronological order.

start: String

A token that can be used to paginate backwards with.

state: Vec<EventResult<StateEvent>>

The state of the room at the last event returned.

Trait Implementations

impl Debug for IncomingResponse[src]

impl TryFrom<Response<Vec<u8>>> for IncomingResponse[src]

type Error = FromHttpResponseError<Error>

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,