Struct ruma::api::client::r0::search::search_events::ResultRoomEvents [−][src]
pub struct ResultRoomEvents {
pub count: Option<UInt>,
pub groups: BTreeMap<GroupingKey, BTreeMap<RoomIdOrUserId, ResultGroup>>,
pub next_batch: Option<String>,
pub results: Vec<SearchResult, Global>,
pub state: BTreeMap<RoomId, Vec<Raw<AnyStateEvent>, Global>>,
pub highlights: Vec<String, Global>,
}
api
and (crate features client-api
or client-api-c
or client-api-s
) only.Expand description
Categories of events that can be searched for.
Fields
count: Option<UInt>
An approximate count of the total number of results found.
groups: BTreeMap<GroupingKey, BTreeMap<RoomIdOrUserId, 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, Global>
List of results in the requested order.
state: BTreeMap<RoomId, Vec<Raw<AnyStateEvent>, Global>>
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
.
highlights: Vec<String, Global>
List of words which should be highlighted, useful for stemming which may change the query terms.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ResultRoomEvents, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ResultRoomEvents, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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 ResultRoomEvents
impl Send for ResultRoomEvents
impl Sync for ResultRoomEvents
impl Unpin for ResultRoomEvents
impl UnwindSafe for ResultRoomEvents
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more