elastic_query_builder/query/
mod.rs

1use serde_json::Value;
2
3pub mod bool_query;
4pub mod exists_query;
5pub mod geo_distance_query;
6pub mod match_all_query;
7pub mod match_query;
8pub mod multi_match_query;
9pub mod nested;
10pub mod range_query;
11pub mod script_query;
12pub mod script_score_query;
13pub mod term_query;
14pub mod terms_query;
15pub mod wildcard_query;
16
17pub trait QueryTrait {
18    fn build(&self) -> Value;
19    fn query_name(&self) -> String;
20}
21
22trait MatchQueryTrait: QueryTrait {
23    fn query_name() -> String;
24}