mwapi_responses

Function query_api

Source
pub async fn query_api<T: ApiResponse<U> + DeserializeOwned, U, P: Into<Params>>(
    client: &Client,
    extra: P,
) -> Result<T>
Expand description

Easily execute a request using the mwapi crate.

Any extra custom parameters can be passed in to the function and were merged with the default request parameters.