Struct opentdb::api_request::ApiRequest
source · pub struct ApiRequest {
pub base_url: String,
pub questions: u8,
pub category: u8,
pub difficulty: String,
pub question_type: String,
pub encoding: String,
pub token: String,
}
Expand description
A struct representing the request to the server for the main API.
Example: https://opentdb.com/api.php?amount=10&category=10&difficulty=medium&type=multiple&encode=base64
Fields§
§base_url: String
§questions: u8
§category: u8
§difficulty: String
§question_type: String
§encoding: String
§token: String
Trait Implementations§
source§impl Debug for ApiRequest
impl Debug for ApiRequest
source§impl<'de> Deserialize<'de> for ApiRequest
impl<'de> Deserialize<'de> for ApiRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more