[][src]Struct ruma_client_api::r0::search::search_events::IncomingRoomEventResults

pub struct IncomingRoomEventResults {
    pub count: UInt,
    pub groups: HashMap<GroupingKey, HashMap<RoomId, ResultGroup>>,
    pub next_batch: Option<String>,
    pub results: Vec<IncomingSearchResult>,
    pub state: Option<()>,
}

'Incoming' variant of RoomEventResults.

Fields

count: UInt

An approximate count of the total number of results found.

groups: HashMap<GroupingKey, HashMap<RoomId, ResultGroup>>

Any groups that were requested.

next_batch: Option<String>

Token that can be used to get the next batch of results, by passing as the next_batch parameter to the next call. If this field is absent, there are no more results.

results: Vec<IncomingSearchResult>

List of results in the requested order.

state: Option<()>

The current state for every room in the results. This is included if the request had the include_state key set with a value of true.

Trait Implementations

impl Debug for IncomingRoomEventResults[src]

impl<'de> Deserialize<'de> for IncomingRoomEventResults[src]

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[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>,