Struct elastic::client::responses::Hits
[−]
pub struct Hits<T> { pub total: u64, pub max_score: Option<f32>, pub hits: Vec<T>, }
Struct to hold the search's Hits, serializable to type T
or serde_json::Value
Fields
total: u64
max_score: Option<f32>
hits: Vec<T>
Trait Implementations
impl<'de, T> Deserialize<'de> for Hits<T> where
T: Deserialize<'de>,
T: Deserialize<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Hits<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
__deserializer: __D
) -> Result<Hits<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<T> Debug for Hits<T> where
T: Debug,
T: Debug,