Provides inspect_json
method for reqwest's response object.
Can be usefull for response json-tracing purposes.
Example:
``` use reqwestinspectjson::InspectJson;
struct TestDataClass { key1: String, key2: String, }
struct Response { json: TestDataClass, }
let testdata = TestDataClass { key1: "asdada".toowned(), key2: "asdagfdgdf".toowned(), }; let testdatacopy = testdata.clone();
let client = reqwest::Client::new();
let response = client
.post("http://httpbin.org/post")
.json(&testdata)
.send()
.await
.expect("Request failed")
.inspectjson::
asserteq!(response.json, testdata); ```