mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +08:00
Format all fields in camelCase
This commit is contained in:
parent
b1bf6722e8
commit
30410e870f
@ -111,14 +111,15 @@ pub struct SearchResult {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Debug, Clone, PartialEq)]
|
#[derive(Serialize, Debug, Clone, PartialEq)]
|
||||||
#[serde(rename_all = "camelCase")]
|
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
pub enum HitsInfo {
|
pub enum HitsInfo {
|
||||||
|
#[serde(rename_all = "camelCase")]
|
||||||
Pagination {
|
Pagination {
|
||||||
hits_per_page: usize,
|
hits_per_page: usize,
|
||||||
page: usize,
|
page: usize,
|
||||||
total_pages: usize,
|
total_pages: usize,
|
||||||
},
|
},
|
||||||
|
#[serde(rename_all = "camelCase")]
|
||||||
OffsetLimit {
|
OffsetLimit {
|
||||||
limit: usize,
|
limit: usize,
|
||||||
offset: usize,
|
offset: usize,
|
||||||
|
Loading…
Reference in New Issue
Block a user