Struct opentdb::api_response::ApiResponse
source · pub struct ApiResponse {
pub response_code: ResponseCode,
pub results: Vec<ApiResult>,
}
Expand description
A struct representing the response from the server for the main API.
Example Response
{
"response_code": 0,
"results": [
{
...
},
...
]
}
Fields§
§response_code: ResponseCode
§results: Vec<ApiResult>
Trait Implementations§
source§impl Debug for ApiResponse
impl Debug for ApiResponse
source§impl<'de> Deserialize<'de> for ApiResponse
impl<'de> Deserialize<'de> for ApiResponse
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