(body: &bitreq::Response)
| 117 | } |
| 118 | |
| 119 | fn body_str(body: &bitreq::Response) -> String { |
| 120 | body.as_str().map_or_else( |
| 121 | |e| format!("response body contains invalid UTF-8: {e}"), |
| 122 | std::string::ToString::to_string, |
| 123 | ) |
| 124 | } |
| 125 | |
| 126 | fn extract_price_from_response( |
| 127 | resp: &Value, |