Struct elasticsearch_dsl::search::SearchResponse [−][src]
pub struct SearchResponse<H = Value, IH = Value> {
pub took: u32,
pub timed_out: bool,
pub shards: Shards,
pub hits: Hits<H, IH>,
pub aggregations: Option<Value>,
}Expand description
Search response
Fields
took: u32The time that it took Elasticsearch to process the query
timed_out: boolIndicates whether there have been timed-out shards, if true - responses are partial
shards: ShardsNumber of shards touched with their states
hits: Hits<H, IH>Search hits
aggregations: Option<Value>Search aggregations
Trait Implementations
impl<'de, H, IH> Deserialize<'de> for SearchResponse<H, IH> where
H: Deserialize<'de>,
IH: Deserialize<'de>,
impl<'de, H, IH> Deserialize<'de> for SearchResponse<H, IH> where
H: Deserialize<'de>,
IH: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl<H, IH> RefUnwindSafe for SearchResponse<H, IH> where
H: RefUnwindSafe,
IH: RefUnwindSafe,
impl<H, IH> Send for SearchResponse<H, IH> where
H: Send,
IH: Send,
impl<H, IH> Sync for SearchResponse<H, IH> where
H: Sync,
IH: Sync,
impl<H, IH> Unpin for SearchResponse<H, IH> where
H: Unpin,
IH: Unpin,
impl<H, IH> UnwindSafe for SearchResponse<H, IH> where
H: UnwindSafe,
IH: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more