opentdb/
api_request.rs

1/// A struct representing the request to the server for the main API.
2///
3/// Example: https://opentdb.com/api.php?amount=10&category=10&difficulty=medium&type=multiple&encode=base64
4#[derive(Deserialize, Debug)]
5pub struct ApiRequest {
6    pub base_url: String,
7    pub questions: u8,
8    pub category: u8,
9    pub difficulty: String,
10    pub question_type: String,
11    pub encoding: String,
12    pub token: String,
13}