1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
* Manticore Search Client
*
* Сlient for Manticore Search.
*
* The version of the OpenAPI document: 5.0.0
* Contact: info@manticoresearch.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// HitsHits : Search hit representing a matched document
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct HitsHits {
/// The ID of the matched document
#[serde(rename = "_id", skip_serializing_if = "Option::is_none")]
pub _id: Option<u64>,
/// The score of the matched document
#[serde(rename = "_score", skip_serializing_if = "Option::is_none")]
pub _score: Option<i32>,
/// The source data of the matched document
#[serde(rename = "_source", skip_serializing_if = "Option::is_none")]
pub _source: Option<serde_json::Value>,
/// The knn distance of the matched document returned for knn queries
#[serde(rename = "_knn_dist", skip_serializing_if = "Option::is_none")]
pub _knn_dist: Option<f64>,
/// The highlighting-related data of the matched document
#[serde(rename = "highlight", skip_serializing_if = "Option::is_none")]
pub highlight: Option<serde_json::Value>,
/// The table name of the matched document returned for percolate queries
#[serde(rename = "table", skip_serializing_if = "Option::is_none")]
pub table: Option<String>,
/// The type of the matched document returned for percolate queries
#[serde(rename = "_type:", skip_serializing_if = "Option::is_none")]
pub _type_colon: Option<String>,
/// The percolate-related fields of the matched document returned for percolate queries
#[serde(rename = "fields", skip_serializing_if = "Option::is_none")]
pub fields: Option<serde_json::Value>,
}
impl HitsHits {
/// Search hit representing a matched document
pub fn new() -> HitsHits {
HitsHits {
_id: None,
_score: None,
_source: None,
_knn_dist: None,
highlight: None,
table: None,
_type_colon: None,
fields: None,
}
}
}