From 30410e870f11935532b025279063eef8580ab6ba Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Tue, 12 Jul 2022 17:11:59 +0200 Subject: [PATCH] Format all fields in camelCase --- meilisearch-lib/src/index/search.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meilisearch-lib/src/index/search.rs b/meilisearch-lib/src/index/search.rs index 44ece9f2f..083f64292 100644 --- a/meilisearch-lib/src/index/search.rs +++ b/meilisearch-lib/src/index/search.rs @@ -111,14 +111,15 @@ pub struct SearchResult { } #[derive(Serialize, Debug, Clone, PartialEq)] -#[serde(rename_all = "camelCase")] #[serde(untagged)] pub enum HitsInfo { + #[serde(rename_all = "camelCase")] Pagination { hits_per_page: usize, page: usize, total_pages: usize, }, + #[serde(rename_all = "camelCase")] OffsetLimit { limit: usize, offset: usize,