Struct opentdb::api_response::ApiResponse
source · Expand description
An API response from /api.php
.
A struct representing the response from the server for the main API.
Example Response
{
"response_code": 0,
"results": [
{
...
},
...
]
}
Fields
response_code: u8
results: Vec<ApiResult>
Trait Implementations
sourceimpl Debug for ApiResponse
impl Debug for ApiResponse
sourceimpl<'de> Deserialize<'de> for ApiResponse
impl<'de> Deserialize<'de> for ApiResponse
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for ApiResponse
impl Send for ApiResponse
impl Sync for ApiResponse
impl Unpin for ApiResponse
impl UnwindSafe for ApiResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more