debug the body of every http request

This commit is contained in:
Tamo 2021-06-23 12:18:34 +02:00
parent 36f32f58d4
commit ad8d9a97d6
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
8 changed files with 46 additions and 7 deletions

View file

@ -33,7 +33,7 @@ pub const fn default_crop_length() -> usize {
DEFAULT_CROP_LENGTH
}
#[derive(Deserialize)]
#[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase", deny_unknown_fields)]
pub struct SearchQuery {
pub q: Option<String>,
@ -62,7 +62,7 @@ pub struct SearchHit {
pub matches_info: Option<MatchesInfo>,
}
#[derive(Serialize)]
#[derive(Serialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct SearchResult {
pub hits: Vec<SearchHit>,