MCPcopy Create free account
hub / github.com/ElementsProject/lightning / body_str

Function body_str

plugins/currencyrate-plugin/src/oracle.rs:119–124  ·  view source on GitHub ↗
(body: &bitreq::Response)

Source from the content-addressed store, hash-verified

117}
118
119fn 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
126fn extract_price_from_response(
127 resp: &Value,

Callers

nothing calls this directly

Calls 1

as_strMethod · 0.80

Tested by

no test coverage detected