1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::{Deserialize, Serialize};

#[derive(Deserialize, Serialize, Debug)]
pub struct Response<T> {
    /// Array of objects representing the query results.
    pub results: Vec<T>,
    /// When true repeating the query with an incremented page number will yield more results
    pub more: bool,
    /// Indicates the total number of entries that matched the given filters
    pub count: Option<u32>,
    /// Compact string representation of the filters given in the query
    pub compact_filters: Option<String>,
    /// Normalized JSON representation of the filters given in the query
    pub normalized_filters: Option<serde_json::Value>,
}