Format all fields in camelCase

This commit is contained in:
ManyTheFish 2022-07-12 17:11:59 +02:00
parent b1bf6722e8
commit 30410e870f

View File

@ -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,