Struct rs_es::operations::search::SearchHitsHitsResult
[−]
[src]
pub struct SearchHitsHitsResult { pub index: String, pub doc_type: String, pub id: String, pub score: Option<f64>, pub source: Option<Json>, pub fields: Option<Json>, }
Fields
index | |
doc_type | |
id | |
score | |
source | |
fields |
Methods
impl SearchHitsHitsResult
fn source<T: Decodable>(self) -> Result<T, EsError>
[−]
Get the source document as a struct, the raw JSON version is available directly from the source field