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

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

Categories of events that can be searched for.

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<SearchResult>

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 Clone for RoomEventResults[src]

impl Debug for RoomEventResults[src]

impl Outgoing for RoomEventResults[src]

type Incoming = IncomingRoomEventResults

The 'Incoming' variant of Self.

impl Serialize for RoomEventResults[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> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,