Struct elasticsearch_dsl::search::SearchResponse
source · [−]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: u32
The time that it took Elasticsearch to process the query
timed_out: bool
Indicates whether there have been timed-out shards, if true
- responses are partial
shards: Shards
Number of shards touched with their states
hits: Hits<H, IH>
Search hits
aggregations: Option<Value>
Search aggregations
Trait Implementations
sourceimpl<H: Clone, IH: Clone> Clone for SearchResponse<H, IH>
impl<H: Clone, IH: Clone> Clone for SearchResponse<H, IH>
sourcefn clone(&self) -> SearchResponse<H, IH>
fn clone(&self) -> SearchResponse<H, IH>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<H: Debug, IH: Debug> Debug for SearchResponse<H, IH>
impl<H: Debug, IH: Debug> Debug for SearchResponse<H, IH>
sourceimpl<'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>,
sourcefn 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
sourceimpl<H: PartialEq, IH: PartialEq> PartialEq<SearchResponse<H, IH>> for SearchResponse<H, IH>
impl<H: PartialEq, IH: PartialEq> PartialEq<SearchResponse<H, IH>> for SearchResponse<H, IH>
sourcefn eq(&self, other: &SearchResponse<H, IH>) -> bool
fn eq(&self, other: &SearchResponse<H, IH>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SearchResponse<H, IH>) -> bool
fn ne(&self, other: &SearchResponse<H, IH>) -> bool
This method tests for !=
.
sourceimpl<H, IH> Serialize for SearchResponse<H, IH> where
H: Serialize,
IH: Serialize,
impl<H, IH> Serialize for SearchResponse<H, IH> where
H: Serialize,
IH: Serialize,
impl<H, IH> StructuralPartialEq for SearchResponse<H, IH>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more