diff --git a/Cargo.lock b/Cargo.lock index 884b188..b8a2736 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1396,7 +1396,7 @@ dependencies = [ [[package]] name = "microtools" -version = "0.2.2" +version = "0.3.1" dependencies = [ "actix", "actix-web", diff --git a/Cargo.toml b/Cargo.toml index 0a5f802..d1c0da3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "microtools" -version = "0.2.2" +version = "0.3.1" authors = ["Bodo Junglas ", "Ihor Mordashev { #[derive(Clone, Debug, Deserialize)] pub struct QueryHits { - pub total: u64, + pub total: QueryHitsTotal, pub hits: Vec>, } +#[derive(Clone, Debug, Deserialize)] +pub struct QueryHitsTotal { + pub total: u64, + pub relation: String, +} + #[derive(Clone, Debug, Deserialize)] pub struct Doc { #[serde(rename = "_id")]