Skip to main content

get_json

Function get_json 

Source
pub async fn get_json<T: DeserializeOwned + 'static>(
    url: impl Into<String>,
) -> Result<T>
Expand description

Performs a GET request to url and deserializes the response body from JSON into T.