vndb_api/request/response.rs
1use serde::{Deserialize, Serialize};
2
3#[derive(Deserialize, Serialize, Debug)]
4pub struct Response<T> {
5 /// Array of objects representing the query results.
6 pub results: Vec<T>,
7 /// When true repeating the query with an incremented page number will yield more results
8 pub more: bool,
9 /// Indicates the total number of entries that matched the given filters
10 pub count: Option<u32>,
11 /// Compact string representation of the filters given in the query
12 pub compact_filters: Option<String>,
13 /// Normalized JSON representation of the filters given in the query
14 pub normalized_filters: Option<serde_json::Value>,
15}