MCPcopy Create free account
hub / github.com/BcnRust/devbcn-workshop / get_films

Function get_films

front/src/main.rs:22–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22async fn get_films() -> Vec<Film> {
23 log::info!("Getting films {}", films_endpoint());
24 reqwest::get(&films_endpoint())
25 .await
26 .unwrap()
27 .json::<Vec<Film>>()
28 .await
29 .unwrap()
30}
31
32fn main() {
33 wasm_logger::init(wasm_logger::Config::default().module_prefix("front"));

Callers 1

AppFunction · 0.85

Calls 2

films_endpointFunction · 0.85
getFunction · 0.50

Tested by

no test coverage detected